Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created September 19, 2018 20:56
Show Gist options
  • Save nikomatsakis/43691f0bc5703cc3d8c108715656f565 to your computer and use it in GitHub Desktop.
Save nikomatsakis/43691f0bc5703cc3d8c108715656f565 to your computer and use it in GitHub Desktop.
// MIR for `Z::{{constant}}`
// source = MirSource { def_id: DefId(0/1:9 ~ issue_54224[317d]::Z[0]::{{constant}}[0]), promoted: None }
// pass_name = nll
// disambiguator = 0
| Free Region Mapping
| '_#0r | Global | ['_#0r, '_#1r]
| '_#1r | Local | ['_#1r]
|
| Inferred Region Values
| '_#0r | U0 | {bb0[0..=1], '_#0r, '_#1r}
| '_#1r | U0 | {bb0[0..=1], '_#1r}
|
| Inference Constraints
| '_#0r live at {bb0[0..=1]}
| '_#1r live at {bb0[0..=1]}
const Z::{{constant}}: usize ={
let mut _0: usize; // return place
bb0: {
_0 = const 3usize; // bb0[0]: scope 0 at /home/nmatsakis/tmp/issue-54224.rs:5:34: 5:35
// ty::Const
// + ty: usize
// + val: Scalar(Bits { size: 8, bits: 3 })
// mir::Constant
// + span: /home/nmatsakis/tmp/issue-54224.rs:5:34: 5:35
// + ty: usize
// + literal: Const { ty: usize, val: Scalar(Bits { size: 8, bits: 3 }) }
return; // bb0[1]: scope 0 at /home/nmatsakis/tmp/issue-54224.rs:5:34: 5:35
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment