-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't inspect the generated existential type items
- Loading branch information
Showing
7 changed files
with
20 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,29 @@ | ||
error[E0391]: cycle detected when processing `cycle1::{{exist-impl-Trait}}` | ||
--> $DIR/auto-trait-leak.rs:24:16 | ||
| | ||
LL | fn cycle1() -> impl Clone { | ||
| ^^^^^^^^^^ | ||
| | ||
note: ...which requires processing `cycle1`... | ||
error[E0391]: cycle detected when processing `cycle1` | ||
--> $DIR/auto-trait-leak.rs:24:1 | ||
| | ||
LL | fn cycle1() -> impl Clone { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`... | ||
note: ...which requires processing `cycle2::{{exist-impl-Trait}}`... | ||
--> $DIR/auto-trait-leak.rs:33:16 | ||
--> $DIR/auto-trait-leak.rs:31:16 | ||
| | ||
LL | fn cycle2() -> impl Clone { | ||
| ^^^^^^^^^^ | ||
note: ...which requires processing `cycle2`... | ||
--> $DIR/auto-trait-leak.rs:33:1 | ||
--> $DIR/auto-trait-leak.rs:31:1 | ||
| | ||
LL | fn cycle2() -> impl Clone { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`... | ||
= note: ...which again requires processing `cycle1::{{exist-impl-Trait}}`, completing the cycle | ||
|
||
error[E0391]: cycle detected when processing `cycle1::{{exist-impl-Trait}}` | ||
note: ...which requires processing `cycle1::{{exist-impl-Trait}}`... | ||
--> $DIR/auto-trait-leak.rs:24:16 | ||
| | ||
LL | fn cycle1() -> impl Clone { | ||
| ^^^^^^^^^^ | ||
| | ||
note: ...which requires processing `cycle1`... | ||
--> $DIR/auto-trait-leak.rs:24:1 | ||
| | ||
LL | fn cycle1() -> impl Clone { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`... | ||
note: ...which requires processing `cycle2::{{exist-impl-Trait}}`... | ||
--> $DIR/auto-trait-leak.rs:33:16 | ||
| | ||
LL | fn cycle2() -> impl Clone { | ||
| ^^^^^^^^^^ | ||
note: ...which requires processing `cycle2`... | ||
--> $DIR/auto-trait-leak.rs:33:1 | ||
| | ||
LL | fn cycle2() -> impl Clone { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= note: ...which again requires processing `cycle1::{{exist-impl-Trait}}`, completing the cycle | ||
|
||
error[E0277]: `std::rc::Rc<std::string::String>` cannot be sent between threads safely | ||
--> $DIR/auto-trait-leak.rs:27:5 | ||
| | ||
LL | send(cycle2().clone()); | ||
| ^^^^ `std::rc::Rc<std::string::String>` cannot be sent between threads safely | ||
| | ||
= help: within `impl std::clone::Clone`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<std::string::String>` | ||
= note: required because it appears within the type `impl std::clone::Clone` | ||
note: required by `send` | ||
--> $DIR/auto-trait-leak.rs:16:1 | ||
| | ||
LL | fn send<T: Send>(_: T) {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
= note: ...which again requires processing `cycle1`, completing the cycle | ||
note: cycle used when type-checking all item bodies | ||
|
||
error: aborting due to 3 previous errors | ||
error: aborting due to previous error | ||
|
||
Some errors occurred: E0277, E0391. | ||
For more information about an error, try `rustc --explain E0277`. | ||
For more information about this error, try `rustc --explain E0391`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters