Open
Description
Currently if the user types a method that does not exist, a suggestion may be provided if what was typed is reasonably close to an existing method.
let set = ::std::collections::HashSet::new();
set.insrt(0u8); // = help: did you mean `insert`?
However, this only catches typos — completely different names aren't considered "close". I think it'd be helpful, especially for people coming from other languages (or switching between them frequently) to be able to specify custom suggestions for potential alternate names, so that something like the following works:
let set = ::std::collections::HashSet::new();
set.add(0u8); // = help: did you mean `insert`?
set.push(0u8); // = help: did you mean `insert`?
// etc.