about summary refs log tree commit diff
path: root/src/test/ui/suggestions
AgeCommit message (Collapse)AuthorLines
2017-09-27Add UI testsHunter Praska-0/+47
2017-09-24Change Levensthein-based method to a single suggestionThomas Jespersen-9/+9
The convention for suggesting close matches is to provide at most one match (the closest one). Change the suggestions for misspelt method names to obey that.
2017-09-21Add suggestions for misspelled method namesThomas Jespersen-0/+72
Use the syntax::util::lev_distance module to provide suggestions when a named method cannot be found. Part of #30197
2017-09-03add error message for the other case tooAriel Ben-Yehuda-5/+7
2017-09-03on_unimplemented: add method-name checks and use them in TryAriel Ben-Yehuda-6/+40
2017-09-03address review commentsAriel Ben-Yehuda-22/+9
2017-09-03enable desugaring-sensitive error messages and use them in TryAriel Ben-Yehuda-6/+35
Maybe I should allow error messages to check the *specific* desugaring? Thanks @huntiep for the idea!
2017-08-29Check the substituted return type in return type suggestions.Ariel Ben-Yehuda-0/+30
Fixes #43420.
2017-07-23Auto merge of #43096 - estebank:ascription-help, r=nikomatsakisbors-0/+67
Point at `:` when using it instead of `;` When triggering type ascription in such a way that we can infer a statement end was intended, add a suggestion for the change. Always point out the reason for the expectation of a type is due to type ascription. Fix #42057, #41928.
2017-07-18Handle type ascription cases with a method call instead of a typeEsteban Küber-0/+31
2017-07-17Add flag to hide code on inline suggestionsEsteban Küber-1/+1
Now there's a way to add suggestions that hide the suggested code when presented inline, to avoid weird wording when short code snippets are added at the end.
2017-07-17Change some helps to suggestionsOliver Schneider-1/+1
2017-07-16Point at `:` when using it instead of `;`Esteban Küber-0/+36
When triggering type ascription in such a way that we can infer a statement end was intended, add a suggestion for the change. Always point out the reason for the expectation of a type is due to type ascription.
2017-07-05Add `rustc_on_unimplemented` message to `std::ops::Try`Esteban Küber-0/+27
2017-07-02Revert "Change error count messages"Ariel Ben-Yehuda-6/+6
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-05-27Add new error codes and update testsGuillaume Gomez-17/+17
2017-05-24Change error count messagesMichael Kohl-6/+6
See #33525 for details.
2017-04-25Rebase and address commentsOliver Schneider-4/+4
2017-04-12Rollup merge of #41087 - estebank:tuple-float-index, r=arielb1Tim Neumann-0/+26
Use proper span for tuple index parsed as float Fix diagnostic suggestion from: ```rust help: try parenthesizing the first index | (1, (2, 3)).((1, (2, 3)).1).1; ``` to the correct: ```rust help: try parenthesizing the first index | ((1, (2, 3)).1).1; ``` Fix #41081.
2017-04-05Use proper span for tuple index parsed as floatEsteban Küber-0/+26
Fix diagnostic suggestion from: ```rust help: try parenthesizing the first index | (1, (2, 3)).((1, (2, 3)).1).1; ``` to the correct: ```rust help: try parenthesizing the first index | ((1, (2, 3)).1).1; ```
2017-04-04Do not recommend private fields called as methodEsteban Küber-0/+37
2017-03-28Simplify labels and move tests to uiEsteban Küber-0/+338