File tree 1 file changed +6
-6
lines changed
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.
105
105
106
106
## What took you so long?
107
107
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
113
113
following code since it would result in a ` const ` being mutable at runtime!
114
114
115
- [ Miri ] : https://github.com/rust-lang /miri
115
+ [ miri ] : https://rust-lang. github.io/rustc-guide /miri.html
116
116
117
117
``` rust
118
118
const CELL : & std :: cell :: Cell <i32 > = & std :: cell :: Cell :: new (42 ); // Not allowed...
You can’t perform that action at this time.
0 commit comments