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.
This commit is contained in:
parent
00a39cc785
commit
08c77a6eb4
12 changed files with 259 additions and 4 deletions
|
@ -1265,6 +1265,7 @@ symbols! {
|
|||
rustc_clean,
|
||||
rustc_coherence_is_core,
|
||||
rustc_coinductive,
|
||||
rustc_confusables,
|
||||
rustc_const_stable,
|
||||
rustc_const_unstable,
|
||||
rustc_conversion_suggestion,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue