about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-13 22:51:00 +0200
committerGitHub <noreply@github.com>2021-10-13 22:51:00 +0200
commitefac68b93cfac0aa7062169f3b041661fbbdbdbd (patch)
treed91e65af7b37766a328edae3f7b009b4038d57a8 /compiler/rustc_mir_transform/src/coverage/mod.rs
parenteeb16a2a892c2a29b1da3085e29f39efa3486e1c (diff)
parentf819e6d59c41b6bb3db2810c5c8e340b2fb2a88d (diff)
downloadrust-efac68b93cfac0aa7062169f3b041661fbbdbdbd.tar.gz
rust-efac68b93cfac0aa7062169f3b041661fbbdbdbd.zip
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`
```
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions