File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -105,14 +105,14 @@ us know if something goes horribly wrong.
105105
106106## What took you so long?
107107
108- [ Miri] , which rust uses under the hood for compile-time function evaluation,
109- has been capable of this for a while now. However, rust needs to statically
110- guarantee certain properties about variables in a ` const ` , such as whether
111- they allow for interior mutability or whether they have a ` Drop `
112- implementation that needs to be called. For example, we must reject the
108+ [ The Miri engine ] [ miri ] , which rust uses under the hood for compile-time
109+ function evaluation, has been capable of this for a while now. However, rust
110+ needs to statically guarantee certain properties about variables in a ` const ` ,
111+ such as whether they allow for interior mutability or whether they have a
112+ ` Drop ` implementation that needs to be called. For example, we must reject the
113113following code since it would result in a ` const ` being mutable at runtime!
114114
115- [ Miri ] : https://github.com/rust-lang /miri
115+ [ miri ] : https://rust-lang. github.io/rustc-guide /miri.html
116116
117117``` rust
118118const CELL : & std :: cell :: Cell <i32 > = & std :: cell :: Cell :: new (42 ); // Not allowed...
You can’t perform that action at this time.
0 commit comments