Files
rust/tests/mir-opt/inline/forced_inherent_async.caller.ForceInline.panic-unwind.diff
Reuben Cruise 5bf5e71160 Extends rustc_force_inline to inherent methods
- Changes parser to allow application to inherent methods.
- Adds tests to confirm extended functionality works just as the existing.
2025-10-02 11:30:11 +01:00

13 lines
302 B
Diff

- // MIR for `caller` before ForceInline
+ // MIR for `caller` after ForceInline
fn caller() -> {async fn body of caller()} {
let mut _0: {async fn body of caller()};
bb0: {
_0 = {coroutine@$DIR/forced_inherent_async.rs:14:19: 18:2 (#0)};
return;
}
}