forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#120859 - nnethercote:fix-120856, r=oli-obk Loosen an assertion to account for stashed errors. The meaning of this assertion changed in rust-lang#120828 when the meaning of `has_errors` changed to exclude stashed errors. Evidently the new meaning is too restrictive. Fixes rust-lang#120856. r? ```@oli-obk```
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pub type Archived<T> = <m::Alias as n::Trait>::Archived; | ||
//~^ ERROR failed to resolve: use of undeclared crate or module `m` | ||
//~| ERROR failed to resolve: use of undeclared crate or module `n` | ||
|
||
fn main() {} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
error[E0433]: failed to resolve: use of undeclared crate or module `n` | ||
--> $DIR/issue-120856.rs:1:37 | ||
| | ||
LL | pub type Archived<T> = <m::Alias as n::Trait>::Archived; | ||
| ^ | ||
| | | ||
| use of undeclared crate or module `n` | ||
| help: a trait with a similar name exists: `Fn` | ||
|
||
error[E0433]: failed to resolve: use of undeclared crate or module `m` | ||
--> $DIR/issue-120856.rs:1:25 | ||
| | ||
LL | pub type Archived<T> = <m::Alias as n::Trait>::Archived; | ||
| ^ | ||
| | | ||
| use of undeclared crate or module `m` | ||
| help: a type parameter with a similar name exists: `T` | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0433`. |