Bless mir-opt tests.

This commit is contained in:
Camille GILLOT 2023-01-21 14:26:44 +00:00
parent de110f9208
commit d3d626920a
3 changed files with 18 additions and 4 deletions

View File

@ -1,8 +1,22 @@
// MIR for `b::{closure#0}` 0 generator_resume
/* generator_layout = GeneratorLayout {
field_tys: {
_0: impl std::future::Future<Output = ()>,
_1: impl std::future::Future<Output = ()>,
_0: GeneratorSavedTy {
ty: impl std::future::Future<Output = ()>,
source_info: SourceInfo {
span: $DIR/async_await.rs:15:8: 15:14 (#9),
scope: scope[0],
},
ignore_for_traits: false,
},
_1: GeneratorSavedTy {
ty: impl std::future::Future<Output = ()>,
source_info: SourceInfo {
span: $DIR/async_await.rs:16:8: 16:14 (#12),
scope: scope[0],
},
ignore_for_traits: false,
},
},
variant_fields: {
Unresumed(0): [],

View File

@ -7,7 +7,7 @@
span: $DIR/generator_drop_cleanup.rs:11:13: 11:15 (#0),
scope: scope[0],
},
is_static_ptr: false,
ignore_for_traits: false,
},
},
variant_fields: {

View File

@ -7,7 +7,7 @@
span: $DIR/generator_tiny.rs:20:13: 20:15 (#0),
scope: scope[0],
},
is_static_ptr: false,
ignore_for_traits: false,
},
},
variant_fields: {