mozilla/rust — pull request #12979 by dobkeratops (2014-03-17 15:52:50+00:00)
Title: Didyoumean

additonal note to error messages when a symbol isn't found - if the symbol exists in other paths, up to 5 suggestions are given, showing their full global path, prioritized by the number of segments matched.

Especially intended to educate&assist newcommers with the module system , which behaves in an unexpected way to users of most other languages.

(added "fn show_suggestions_from_other_scopes(), "find_suggestions_from_other_scopes()" which dont affect the compiler state.)