rust/tests/mir-opt/inline/inline_trait_method.test.Inline.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
1.1 KiB
Rust
Raw Normal View History

2020-04-04 12:15:01 -05:00
// MIR for `test` after Inline
fn test(_1: &dyn X) -> u32 {
2022-11-02 16:54:49 -05:00
debug x => _1; // in scope 0 at $DIR/inline_trait_method.rs:+0:9: +0:10
let mut _0: u32; // return place in scope 0 at $DIR/inline_trait_method.rs:+0:23: +0:26
let mut _2: &dyn X; // in scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10
2020-04-04 12:15:01 -05:00
bb0: {
2022-11-02 16:54:49 -05:00
StorageLive(_2); // scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10
_2 = &(*_1); // scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10
_0 = <dyn X as X>::y(move _2) -> bb1; // scope 0 at $DIR/inline_trait_method.rs:+1:5: +1:10
2020-04-04 12:15:01 -05:00
// mir::Constant
2023-04-05 03:44:20 -05:00
// + span: $DIR/inline_trait_method.rs:10:7: 10:8
2022-09-21 10:57:30 -05:00
// + literal: Const { ty: for<'a> fn(&'a dyn X) -> u32 {<dyn X as X>::y}, val: Value(<ZST>) }
2020-04-04 12:15:01 -05:00
}
bb1: {
2022-11-02 16:54:49 -05:00
StorageDead(_2); // scope 0 at $DIR/inline_trait_method.rs:+1:9: +1:10
return; // scope 0 at $DIR/inline_trait_method.rs:+2:2: +2:2
2020-04-04 12:15:01 -05:00
}
}