about summary refs log tree commit diff
path: root/src/test/ui/glob-resolve1.stderr
AgeCommit message (Collapse)AuthorLines
2020-12-07Move some tests to subdirectoriesVadim Petrochenkov-118/+0
2020-10-15resolve: suggest variants with placeholdersDavid Wood-1/+11
This commit improves the diagnostic modified in rust-lang/rust#77341 to suggest not only those variants which do not have fields, but those with fields (by suggesting with placeholders). Signed-off-by: David Wood <david@davidtw.co>
2020-06-23Add re-exports to use suggestionsDan Aloni-0/+5
In the following example, an inaccessible path is suggested via `use foo::bar::X;` whereas an accessible public exported path can be suggested instead. ``` mod foo { mod bar { pub struct X; } pub use self::bar::X; } fn main() { X; } ``` This fixes the issue.
2020-05-07reword "possible candidate" import suggestionAndy Russell-6/+6
2020-03-21Bless testsLeSeulArtichaut-3/+3
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-0/+9
Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+6
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-21use suggestions for "enum instead of variant" errorAndy Russell-4/+1
2019-03-11Update testsVadim Petrochenkov-11/+11
2019-01-09clarify resolve typo suggestionAndy Russell-3/+15
Include the kind of the binding that we're suggesting, and use a structured suggestion.
2018-12-25Remove licensesMark Rousskov-8/+8
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+79