Skip to content

Commit 54856b5

Browse files
committed
Update tests
1 parent 68af421 commit 54856b5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

0 commit comments

Comments
 (0)