Skip to content

Commit f4ed406

Browse files
committed
Update tests
1 parent 68af421 commit f4ed406

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

src/tools/miri/tests/fail/rustc-error2.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
error[E0433]: failed to resolve: use of undeclared crate or module `assert_mem_uninitialized_valid`
1+
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `assert_mem_uninitialized_valid`
22
--> tests/fail/rustc-error2.rs:LL:CC
33
|
44
LL | fn deref(&self) -> &assert_mem_uninitialized_valid::Target {
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `assert_mem_uninitialized_valid`
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `assert_mem_uninitialized_valid`
6+
|
7+
= help: you might be missing a crate named `assert_mem_uninitialized_valid`
68

79
error: aborting due to 1 previous error
810

tests/rustdoc-ui/ice-unresolved-import-100241.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0432]: unresolved import `inner`
44
LL | pub use inner::S;
55
| ^^^^^ use of unresolved module or unlinked crate `inner`
66
|
7-
help: if you wanted to use a crate named `inner`, use `cargo add inner` to add it to your `Cargo.toml` and import it in your code
7+
help: you might be missing a crate named `inner`, add it to your project and import it in your code
88
|
99
LL + extern crate inner;
1010
|

tests/rustdoc-ui/intra-doc/unresolved-import-recovery.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `unr
44
LL | use unresolved_crate::module::Name;
55
| ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `unresolved_crate`
66
|
7-
help: if you wanted to use a crate named `unresolved_crate`, use `cargo add unresolved_crate` to add it to your `Cargo.toml` and import it in your code
7+
help: you might be missing a crate named `unresolved_crate`, add it to your project and import it in your code
88
|
99
LL + extern crate unresolved_crate;
1010
|

tests/rustdoc-ui/issues/issue-61732.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `r#m
44
LL | pub(in crate::r#mod) fn main() {}
55
| ^^^^^ use of unresolved module or unlinked crate `r#mod`
66
|
7-
help: if you wanted to use a crate named `r#mod`, use `cargo add r#mod` to add it to your `Cargo.toml` and import it in your code
7+
help: you might be missing a crate named `r#mod`, add it to your project and import it in your code
88
|
99
LL + extern crate r#mod;
1010
|

tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ enum DiagnosticOnEnum {
5656
#[derive(Diagnostic)]
5757
#[diag(no_crate_example, code = E0123)]
5858
#[diag = "E0123"]
59-
//~^ ERROR failed to resolve: you might be missing crate `core`
59+
//~^ ERROR failed to resolve: you might be missing crate `core`
6060
struct WrongStructAttrStyle {}
6161

6262
#[derive(Diagnostic)]
@@ -801,15 +801,15 @@ struct SuggestionsNoItem {
801801
struct SuggestionsInvalidItem {
802802
#[suggestion(code(foo))]
803803
//~^ ERROR `code(...)` must contain only string literals
804-
//~| ERROR failed to resolve: you might be missing crate `core`
804+
//~| ERROR failed to resolve: you might be missing crate `core`
805805
sub: Span,
806806
}
807807

808808
#[derive(Diagnostic)] //~ ERROR cannot find value `__code_34` in this scope
809809
#[diag(no_crate_example)]
810810
struct SuggestionsInvalidLiteral {
811811
#[suggestion(code = 3)]
812-
//~^ ERROR failed to resolve: you might be missing crate `core`
812+
//~^ ERROR failed to resolve: you might be missing crate `core`
813813
sub: Span,
814814
}
815815

tests/ui/typeck/path-to-method-sugg-unresolved-expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ fn main() {
55
let page_size = page_size::get();
66
//~^ ERROR failed to resolve: use of unresolved module or unlinked crate `page_size`
77
//~| NOTE use of unresolved module or unlinked crate `page_size`
8-
//@[cargo-invoked]~^^^ HELP if you wanted to use a crate named `page_size`, use `cargo add page_size` to add it to your `Cargo.toml`
8+
//@[cargo-invoked]~^^^ HELP if you wanted to use a crate named `page_size`, use `cargo add
99
//@[only-rustc]~^^^^ HELP you might be missing a crate named `page_size`
1010
}

0 commit comments

Comments
 (0)