File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 194
194
195
195
- [ Prologue] ( ./part-5-intro.md )
196
196
- [ MIR optimizations] ( ./mir/optimizations.md )
197
- - [ Debugging] ( ./mir/debugging.md )
197
+ - [ Debugging MIR ] ( ./mir/debugging.md )
198
198
- [ Constant evaluation] ( ./const-eval.md )
199
199
- [ Interpreter] ( ./const-eval/interpret.md )
200
200
- [ Monomorphization] ( ./backend/monomorph.md )
Original file line number Diff line number Diff line change @@ -129,15 +129,15 @@ operator. We use OR and not AND because of this case:
129
129
130
130
``` rust
131
131
# unsafe fn example (some_cond : bool ) {
132
- let x = if some_cond {
133
- std :: mem :: transmute :: <i32 , u32 >(0_i32 ) // transmute was called!
134
- } else {
135
- 1_u32 // transmute was not called
136
- };
137
-
138
- // Has transmute been called by this point? We conservatively approximate that
139
- // as yes, and that is why we use the OR operator.
140
- println! (" x: {}" , x );
132
+ let x = if some_cond {
133
+ std :: mem :: transmute :: <i32 , u32 >(0_i32 ) // transmute was called!
134
+ } else {
135
+ 1_u32 // transmute was not called
136
+ };
137
+
138
+ // Has transmute been called by this point? We conservatively approximate that
139
+ // as yes, and that is why we use the OR operator.
140
+ println! (" x: {}" , x );
141
141
# }
142
142
```
143
143
@@ -221,7 +221,7 @@ the example below:
221
221
222
222
[ "gen-kill" problems ] : https://en.wikipedia.org/wiki/Data-flow_analysis#Bit_vector_problems
223
223
[ *Static Program Analysis* ] : https://cs.au.dk/~amoeller/spa/
224
- [ Debugging MIR ] : ./debugging.html
224
+ [ Debugging MIR ] : ./debugging.md
225
225
[ `AnalysisDomain` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/trait.AnalysisDomain.html
226
226
[ `Analysis` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/trait.Analysis.html
227
227
[ `Engine` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/struct.Engine.html
You can’t perform that action at this time.
0 commit comments