Skip to content

Commit 3c0ddd7

Browse files
committed
minor fixes
1 parent 3f0eade commit 3c0ddd7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/stability.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
This section is about the stability attributes and schemes that allow stable APIs to use unstable
44
APIs 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
3435
the features need an implementation in `qualify_min_const_fn.rs`. For example the `const_fn_union`
3536
feature gate allows accessing fields of unions inside stable `const fn`s. The rules for when it's
3637
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
3839
`const fn` that e.g. transmutes a memory address to an integer, because the addresses of things
3940
are nondeterministic and often unknown at compile-time.
4041

4142
Always ping @oli-obk, @RalfJung, and @Centril if you are adding more `allow_internal_unstable`
4243
attributes to any `const fn`
44+
45+
[blog]: https://www.ralfj.de/blog/2018/07/19/const.html

0 commit comments

Comments
 (0)