forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#89858 - matthiaskrgr:rollup-evsnr2e, r=matthi…
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#89347 (suggestion for typoed crate or module) - rust-lang#89670 (Improve `std::thread::available_parallelism` docs) - rust-lang#89757 (Use shallow clones for submodules) - rust-lang#89759 (Assemble the compiler when running `x.py build`) - rust-lang#89846 (Add `riscv32imc-esp-espidf` to 1.56 changelog) - rust-lang#89853 (Update the 1.56.0 release header for consistency) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
10 changed files
with
180 additions
and
26 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// edition:2018 | ||
|
||
use st::cell::Cell; //~ ERROR failed to resolve: use of undeclared crate or module `st` | ||
|
||
mod bar { | ||
pub fn bar() { bar::baz(); } //~ ERROR failed to resolve: use of undeclared crate or module `bar` | ||
|
||
fn baz() {} | ||
} | ||
|
||
use bas::bar; //~ ERROR unresolved import `bas` | ||
|
||
struct Foo { | ||
bar: st::cell::Cell<bool> //~ ERROR failed to resolve: use of undeclared crate or module `st` | ||
} | ||
|
||
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,43 @@ | ||
error[E0433]: failed to resolve: use of undeclared crate or module `st` | ||
--> $DIR/crate-or-module-typo.rs:3:5 | ||
| | ||
LL | use st::cell::Cell; | ||
| ^^ use of undeclared crate or module `st` | ||
| | ||
help: there is a crate or module with a similar name | ||
| | ||
LL | use std::cell::Cell; | ||
| ~~~ | ||
|
||
error[E0432]: unresolved import `bas` | ||
--> $DIR/crate-or-module-typo.rs:11:5 | ||
| | ||
LL | use bas::bar; | ||
| ^^^ use of undeclared crate or module `bas` | ||
| | ||
help: there is a crate or module with a similar name | ||
| | ||
LL | use bar::bar; | ||
| ~~~ | ||
|
||
error[E0433]: failed to resolve: use of undeclared crate or module `bar` | ||
--> $DIR/crate-or-module-typo.rs:6:20 | ||
| | ||
LL | pub fn bar() { bar::baz(); } | ||
| ^^^ use of undeclared crate or module `bar` | ||
|
||
error[E0433]: failed to resolve: use of undeclared crate or module `st` | ||
--> $DIR/crate-or-module-typo.rs:14:10 | ||
| | ||
LL | bar: st::cell::Cell<bool> | ||
| ^^ use of undeclared crate or module `st` | ||
| | ||
help: there is a crate or module with a similar name | ||
| | ||
LL | bar: std::cell::Cell<bool> | ||
| ~~~ | ||
|
||
error: aborting due to 4 previous errors | ||
|
||
Some errors have detailed explanations: E0432, E0433. | ||
For more information about an error, try `rustc --explain E0432`. |