fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: generator cannot be sent between threads safely 2 --> $DIR/drop-tracking-parent-expression.rs:23:13 3 | 4LL | assert_send(g); 5 | ^^^^^^^^^^^ generator is not `Send` 6... 7LL | / type_combinations!( 8LL | | // OK 9LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; 10LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though 11... | 12LL | | }; 13LL | | ); 14 | |_____- in this macro invocation 15 | 16 = help: within `{generator@$DIR/drop-tracking-parent-expression.rs:17:21: 17:28}`, the trait `Send` is not implemented for `derived_drop::Client` 17note: generator is not `Send` as this value is used across a yield 18 --> $DIR/drop-tracking-parent-expression.rs:21:22 19 | 20LL | let g = move || match drop($name::Client { ..$name::Client::default() }) { 21 | ------------------------ has type `derived_drop::Client` which is not `Send` 22... 23LL | _ => yield, 24 | ^^^^^ yield occurs here, with `$name::Client::default()` maybe used later 25... 26LL | / type_combinations!( 27LL | | // OK 28LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; 29LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though 30... | 31LL | | }; 32LL | | ); 33 | |_____- in this macro invocation 34note: required by a bound in `assert_send` 35 --> $DIR/drop-tracking-parent-expression.rs:40:19 36 | 37LL | fn assert_send<T: Send>(_thing: T) {} 38 | ^^^^ required by this bound in `assert_send` 39 = note: this error originates in the macro `type_combinations` (in Nightly builds, run with -Z macro-backtrace for more info) 40 41error: generator cannot be sent between threads safely 42 --> $DIR/drop-tracking-parent-expression.rs:23:13 43 | 44LL | assert_send(g); 45 | ^^^^^^^^^^^ generator is not `Send` 46... 47LL | / type_combinations!( 48LL | | // OK 49LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; 50LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though 51... | 52LL | | }; 53LL | | ); 54 | |_____- in this macro invocation 55 | 56 = help: within `{generator@$DIR/drop-tracking-parent-expression.rs:17:21: 17:28}`, the trait `Send` is not implemented for `significant_drop::Client` 57note: generator is not `Send` as this value is used across a yield 58 --> $DIR/drop-tracking-parent-expression.rs:21:22 59 | 60LL | let g = move || match drop($name::Client { ..$name::Client::default() }) { 61 | ------------------------ has type `significant_drop::Client` which is not `Send` 62... 63LL | _ => yield, 64 | ^^^^^ yield occurs here, with `$name::Client::default()` maybe used later 65... 66LL | / type_combinations!( 67LL | | // OK 68LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; 69LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though 70... | 71LL | | }; 72LL | | ); 73 | |_____- in this macro invocation 74note: required by a bound in `assert_send` 75 --> $DIR/drop-tracking-parent-expression.rs:40:19 76 | 77LL | fn assert_send<T: Send>(_thing: T) {} 78 | ^^^^ required by this bound in `assert_send` 79 = note: this error originates in the macro `type_combinations` (in Nightly builds, run with -Z macro-backtrace for more info) 80 81error: generator cannot be sent between threads safely 82 --> $DIR/drop-tracking-parent-expression.rs:23:13 83 | 84LL | assert_send(g); 85 | ^^^^^^^^^^^ generator is not `Send` 86... 87LL | / type_combinations!( 88LL | | // OK 89LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; 90LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though 91... | 92LL | | }; 93LL | | ); 94 | |_____- in this macro invocation 95 | 96 = help: within `{generator@$DIR/drop-tracking-parent-expression.rs:17:21: 17:28}`, the trait `Send` is not implemented for `insignificant_dtor::Client` 97note: generator is not `Send` as this value is used across a yield 98 --> $DIR/drop-tracking-parent-expression.rs:21:22 99 | 100LL | let g = move || match drop($name::Client { ..$name::Client::default() }) { 101 | ------------------------ has type `insignificant_dtor::Client` which is not `Send` 102... 103LL | _ => yield, 104 | ^^^^^ yield occurs here, with `$name::Client::default()` maybe used later 105... 106LL | / type_combinations!( 107LL | | // OK 108LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; }; 109LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though 110... | 111LL | | }; 112LL | | ); 113 | |_____- in this macro invocation 114note: required by a bound in `assert_send` 115 --> $DIR/drop-tracking-parent-expression.rs:40:19 116 | 117LL | fn assert_send<T: Send>(_thing: T) {} 118 | ^^^^ required by this bound in `assert_send` 119 = note: this error originates in the macro `type_combinations` (in Nightly builds, run with -Z macro-backtrace for more info) 120 121error: aborting due to 3 previous errors 122