Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Jan 30, 2023
1 parent 9bdf7ca commit 31b3373
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -1,39 +1,34 @@
// MIR for `b::{closure#0}` 0 generator_resume
/* generator_layout = GeneratorLayout {
field_tys: {
<<<<<<< master
_0: GeneratorSavedTy {
ty: impl std::future::Future<Output = ()>,
ty: Alias(
Opaque,
AliasTy {
substs: [],
def_id: DefId(0:7 ~ async_await[672b]::a::{opaque#0}),
},
),
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 = ()>,
ty: Alias(
Opaque,
AliasTy {
substs: [],
def_id: DefId(0:7 ~ async_await[672b]::a::{opaque#0}),
},
),
source_info: SourceInfo {
span: $DIR/async_await.rs:16:8: 16:14 (#12),
scope: scope[0],
},
ignore_for_traits: false,
},
=======
_0: Alias(
Opaque,
AliasTy {
substs: [],
def_id: DefId(0:7 ~ async_await[672b]::a::{opaque#0}),
},
),
_1: Alias(
Opaque,
AliasTy {
substs: [],
def_id: DefId(0:7 ~ async_await[672b]::a::{opaque#0}),
},
),
>>>>>>> mir printing changes
},
variant_fields: {
Unresumed(0): [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
// MIR for `main::{closure#0}` 0 generator_drop
/* generator_layout = GeneratorLayout {
field_tys: {
<<<<<<< master
_0: GeneratorSavedTy {
ty: std::string::String,
ty: Adt(
std::string::String,
[],
),
source_info: SourceInfo {
span: $DIR/generator_drop_cleanup.rs:11:13: 11:15 (#0),
scope: scope[0],
},
ignore_for_traits: false,
},
=======
_0: Adt(
std::string::String,
[],
),
>>>>>>> mir printing changes
},
variant_fields: {
Unresumed(0): [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
// MIR for `main::{closure#0}` 0 generator_resume
/* generator_layout = GeneratorLayout {
field_tys: {
<<<<<<< master
_0: GeneratorSavedTy {
ty: HasDrop,
ty: Adt(
HasDrop,
[],
),
source_info: SourceInfo {
span: $DIR/generator_tiny.rs:20:13: 20:15 (#0),
scope: scope[0],
},
ignore_for_traits: false,
},
=======
_0: Adt(
HasDrop,
[],
),
>>>>>>> mir printing changes
},
variant_fields: {
Unresumed(0): [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ note: required because it's used within this generator
|
LL | || {
| ^^
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[749a]::make_gen2::{opaque#0}), [Arc<RefCell<i32>>])`
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[749a]::make_gen2::{opaque#0}), [Adt(Arc, [Adt(RefCell, [Int(I32)])])])`
--> $DIR/generator-print-verbose-1.rs:44:30
|
LL | pub fn make_gen2<T>(t: T) -> impl Generator<Return = T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ note: required because it's used within this generator
|
LL | || {
| ^^
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[749a]::make_gen2::{opaque#0}), [Arc<RefCell<i32>>])`
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[749a]::make_gen2::{opaque#0}), [Adt(Arc, [Adt(RefCell, [Int(I32)])])])`
--> $DIR/generator-print-verbose-1.rs:44:30
|
LL | pub fn make_gen2<T>(t: T) -> impl Generator<Return = T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ note: required because it's used within this generator
|
LL | || {
| ^^
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[749a]::make_gen2::{opaque#0}), [Arc<RefCell<i32>>])`
note: required because it appears within the type `Opaque(DefId(0:35 ~ generator_print_verbose_1[749a]::make_gen2::{opaque#0}), [Adt(Arc, [Adt(RefCell, [Int(I32)])])])`
--> $DIR/generator-print-verbose-1.rs:44:30
|
LL | pub fn make_gen2<T>(t: T) -> impl Generator<Return = T> {
Expand Down
62 changes: 0 additions & 62 deletions tests/ui/generator/print/generator-print-verbose-1.stderr

This file was deleted.

Loading

0 comments on commit 31b3373

Please sign in to comment.