File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
This section is about the stability attributes and schemes that allow stable APIs to use unstable
4
4
APIs internally in the rustc standard library.
5
5
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 ) .
7
8
8
9
# unstable
9
10
@@ -34,9 +35,11 @@ Note that `const fn`s are even more special in this regard. You can't just white
34
35
the features need an implementation in ` qualify_min_const_fn.rs ` . For example the ` const_fn_union `
35
36
feature gate allows accessing fields of unions inside stable ` const fn ` s. The rules for when it's
36
37
ok 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
38
39
` const fn ` that e.g. transmutes a memory address to an integer, because the addresses of things
39
40
are nondeterministic and often unknown at compile-time.
40
41
41
42
Always ping @oli-obk , @RalfJung , and @Centril if you are adding more ` allow_internal_unstable `
42
43
attributes 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