Update unsafe in const functions documentation#484
Conversation
|
Just for my own understanding: it looks like this doesn't actually permit anything truly "unsafe" inside Is there ongoing discussion somewhere about additional |
|
A few truly unsafe things are tracked in rust-lang/rust#57563 but you are right, we need to figure out our story around unsafe and const safety. This is tracked somewhat in rust-lang/const-eval#14 |
https://doc.rust-lang.org/nightly/std/num/struct.NonZeroU8.html#method.new_unchecked |
|
@Centril Ah, okay, I can see how calling that in user code would be truly "unsafe". Thanks. |
fixes #482
cc @Centril