File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 33This section is about the stability attributes and schemes that allow stable APIs to use unstable
44APIs internally in the rustc standard library.
55
6- For instructions on stabilizing a language feature see [ Stabilizing Features] ( ./stabilization_guide.md ) .
6+ For instructions on stabilizing a language feature see
7+ [ Stabilizing Features] ( ./stabilization_guide.md ) .
78
89# unstable
910
@@ -34,9 +35,11 @@ Note that `const fn`s are even more special in this regard. You can't just white
3435the features need an implementation in ` qualify_min_const_fn.rs ` . For example the ` const_fn_union `
3536feature gate allows accessing fields of unions inside stable ` const fn ` s. The rules for when it's
3637ok to use such a feature gate are that behavior matches the runtime behavior of the same code
37- (see also https://www.ralfj.de/ blog/2018/07/19/const.html ). This means that you may not create a
38+ (see also [ this blog post ] [ blog ] ). This means that you may not create a
3839` const fn ` that e.g. transmutes a memory address to an integer, because the addresses of things
3940are nondeterministic and often unknown at compile-time.
4041
4142Always ping @oli-obk , @RalfJung , and @Centril if you are adding more ` allow_internal_unstable `
4243attributes to any ` const fn `
44+
45+ [ blog ] : https://www.ralfj.de/blog/2018/07/19/const.html
You can’t perform that action at this time.
0 commit comments