Patryk Wychowaniec
d31d215c56
Improve E0433, so that it suggests missing imports
2020-06-02 20:41:25 +02:00
Eduard-Mihai Burtescu
4c7eb59e81
rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.
2020-02-06 21:46:38 +02:00
Eduard-Mihai Burtescu
f6fc80206e
rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.
2020-02-06 21:32:07 +02:00
Esteban Küber
2c5766f2d4
Unify output of "variant not found" errors
2020-01-08 08:05:31 -08:00
Alexander Regueiro
13b61b50d9
Fixed grammar in one diagnostic and blessed tests.
2019-09-30 01:15:25 +01:00
Vadim Petrochenkov
f7f8d6584b
resolve: Remove !
from "cannot find" diagnostics for macros
2019-09-15 13:22:07 +03:00
Esteban Küber
5799fb419c
Give method not found a primary span label
2019-09-08 18:27:02 -07:00
Vadim Petrochenkov
23b82c3229
resolve: Move macro resolution traces from Module
s to Resolver
...
Traces already contain module info without that.
It's easy to forget to call `finalize_*` on a module.
In particular, macros enum and trait modules weren't finalized.
By happy accident macros weren't placed into those modules until now.
2019-08-15 20:39:27 +03:00
Vadim Petrochenkov
329c05251a
resolve: Visit all scopes to collect suggestion candidates for unresolved macros
2019-07-18 13:42:45 +03:00
Vadim Petrochenkov
eb09daa762
Hygienize macros in the standard library
2019-06-12 20:27:29 +03:00
Andy Russell
b6f148c8bd
hide --explain
hint if error has no extended info
2019-04-18 13:29:28 -04:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
Taiki Endo
2af18a2b38
Fix errors in test/ui
2019-02-28 04:06:16 +09:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Vadim Petrochenkov
4fc3c13e32
resolve: Avoid sentence breaks in diagnostics
2018-11-18 13:58:36 +03:00
Vadim Petrochenkov
c56adf6413
cleanup: Add main functions to some UI tests
2018-08-31 18:56:15 +03:00
Esteban Küber
447d894edf
Use suggestion for assoc fn called like method
...
When encountering an unexisting method for a given trait where an
associated function has the same name, suggest using the appropriate
syntax, instead of using `help` text.
When only one candidate is found, do not call it "candidate #1 ", just
call it "the candidate".
2018-05-27 13:30:16 -07:00
Vadim Petrochenkov
d3f8b8be6f
Move hygiene tests to UI
2018-04-12 23:06:03 +03:00