Skip to content

Commit 6c1e194

Browse files
committed
fix message
1 parent acb9f9b commit 6c1e194

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_resolve/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,7 @@ impl<'a> Resolver<'a> {
25272527
Some((
25282528
vec![],
25292529
String::from(
2530-
"add `extern crate alloc` to use the builtin `alloc` module",
2530+
"add `extern crate alloc` to use the `alloc` crate",
25312531
),
25322532
Applicability::MaybeIncorrect,
25332533
))

src/test/ui/suggestions/undeclared-module-alloc.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0433]: failed to resolve: use of undeclared crate or module `alloc`
44
LL | use alloc::rc::Rc;
55
| ^^^^^ use of undeclared crate or module `alloc`
66
|
7-
= help: add `extern crate alloc` to use the builtin `alloc` module
7+
= help: add `extern crate alloc` to use the `alloc` crate
88

99
error: aborting due to previous error
1010

0 commit comments

Comments
 (0)