21bb1a4359
This was caused by 72b172bdf6
in #121206. That commit removed an early
return from `analysis` when there are stashed errors. As a result, it's
possible to reach privacy analysis when there are stashed errors, which
means more code paths can be reached. One such code path was handled in
that commit, where a `span_bug` was changed to a `span_delayed_bug`.
This commit handles another such code path uncovered by fuzzing, in much
the same way.
Fixes #121455.
10 lines
371 B
Plaintext
10 lines
371 B
Plaintext
error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions
|
|
--> $DIR/unreachable-issue-121455.rs:1:13
|
|
|
|
|
LL | fn test(s: &Self::Id) {
|
|
| ^^^^ `Self` is only available in impls, traits, and type definitions
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|