]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #89347 - TaKO8Ki:crate-or-module-typo, r=estebank
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 13 Oct 2021 20:51:00 +0000 (22:51 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 20:51:00 +0000 (22:51 +0200)
commitefac68b93cfac0aa7062169f3b041661fbbdbdbd
treed91e65af7b37766a328edae3f7b009b4038d57a8
parenteeb16a2a892c2a29b1da3085e29f39efa3486e1c
parentf819e6d59c41b6bb3db2810c5c8e340b2fb2a88d
Rollup merge of #89347 - TaKO8Ki:crate-or-module-typo, r=estebank

suggestion for typoed crate or module

Previously, the compiler didn't suggest similarly named crates or modules. This pull request adds a suggestion for typoed crates or modules.

#76208

before:

```
error[E0433]: failed to resolve: use of undeclared type or module `chono`
 --> src/main.rs:2:5
  |
2 | use chono::prelude::*;
  |     ^^^^^ use of undeclared type or module `chono`
```

after:

```
error[E0433]: failed to resolve: use of undeclared type or module `chono`
 --> src/main.rs:2:5
  |
2 | use chono::prelude::*;
  |     ^^^^^
  |     |
  |     use of undeclared crate or module `chono`
  |     help: a similar crate or module exists: `chrono`
```