diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-07-16 18:18:38 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-07-16 19:22:03 +0800 |
| commit | 08c77a6eb403768ed64ae567980887984f506ef9 (patch) | |
| tree | 3da9b7971e6ad61ebedf5c5dd716886948ba3e89 /compiler/rustc_errors/src | |
| parent | 00a39cc785fcbb4f1e9c9454e9ee8a85e6ff021c (diff) | |
| download | rust-08c77a6eb403768ed64ae567980887984f506ef9.tar.gz rust-08c77a6eb403768ed64ae567980887984f506ef9.zip | |
Add infrastructure `#[rustc_confusables]` attribute to allow targeted
"no method" errors on standard library types
The standard library developer can annotate methods on e.g.
`BTreeSet::push` with `#[rustc_confusables("insert")]`. When the user
mistypes `btreeset.push()`, `BTreeSet::insert` will be suggested if
there are no other candidates to suggest.
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions
