diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2021-09-29 13:55:24 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2021-10-13 12:17:02 +0900 |
| commit | f819e6d59c41b6bb3db2810c5c8e340b2fb2a88d (patch) | |
| tree | 574e3ecd2b8c3aa878307061db9de08289d8281e /src/test/ui/macros | |
| parent | d7539a6af09e5889ed9bcb8b49571b7a59c32e65 (diff) | |
| download | rust-f819e6d59c41b6bb3db2810c5c8e340b2fb2a88d.tar.gz rust-f819e6d59c41b6bb3db2810c5c8e340b2fb2a88d.zip | |
suggestion for typoed crate or module
avoid suggesting the same name sort candidates fix a message use `opt_def_id` instead of `def_id` move `find_similarly_named_module_or_crate` to rustc_resolve/src/diagnostics.rs
Diffstat (limited to 'src/test/ui/macros')
| -rw-r--r-- | src/test/ui/macros/macro-inner-attributes.stderr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-inner-attributes.stderr b/src/test/ui/macros/macro-inner-attributes.stderr index 8223220d9a4..77b6486155c 100644 --- a/src/test/ui/macros/macro-inner-attributes.stderr +++ b/src/test/ui/macros/macro-inner-attributes.stderr @@ -3,6 +3,11 @@ error[E0433]: failed to resolve: use of undeclared crate or module `a` | LL | a::bar(); | ^ use of undeclared crate or module `a` + | +help: there is a crate or module with a similar name + | +LL | b::bar(); + | ~ error: aborting due to previous error |
