-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Shorten output of E0391 #46282
Shorten output of E0391 #46282
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output of issue-23305.rs
is also affected.
error[E0391]: unsupported cyclic reference between types/traits detected
--> $DIR/issue-23305.rs:15:12
|
15 | impl ToNbt<Self> {}
| ^^^^ cyclic reference
|
note: the cycle begins when processing `<impl at $DIR/issue-23305.rs:15:1: 15:20>`...
--> $DIR/issue-23305.rs:15:1
|
15 | impl ToNbt<Self> {}
- | ^^^^^^^^^^^^^^^^^^^
+ | ^^^^^^^^^^^^^^^^
= note: ...which then again requires processing `<impl at $DIR/issue-23305.rs:15:1: 15:20>`, completing the cycle.
error: aborting due to previous error
--> $DIR/auto-trait-leak.rs:52:1 | ||
| | ||
52 | fn cycle1() -> impl Clone { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actual output differs from expected output. Please update.
error[E0391]: unsupported cyclic reference between types/traits detected
--> $DIR/auto-trait-leak.rs:52:1
|
-52 | fn cycle1() -> impl Clone {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ cyclic reference
+52 | fn cycle1() -> impl Clone {
+ | _-^^^^^^^^^^^^^^^^^^^^^^^^
+53 | | //~^ ERROR unsupported cyclic reference between types/traits detected
+54 | | //~| cyclic reference
+55 | | //~| NOTE the cycle begins when processing `cycle1`...
+... |
+60 | | Rc::new(Cell::new(5))
+61 | | }
+ | |_- cyclic reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed the label. Done.
35e28f4
to
487daab
Compare
@bors r+ rollup |
📌 Commit 487daab has been approved by |
…rielb1 Shorten output of E0391 Use the shorter `def_span` on the impl-Trait cyclic reference errors.
Use the shorter
def_span
on the impl-Trait cyclic reference errors.