about summary refs log tree commit diff
path: root/src/test/ui/namespace
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1053/+0
2022-11-21Unreserve braced enum variants in value namespaceVadim Petrochenkov-17/+7
2022-10-05Delay function resolution error until typeckMichael Goulet-24/+24
2022-08-29Make the trait bound is not satisfied specify kindObei Sideg-4/+4
2022-07-06use `named_span` in case of tuple variantTakayuki Maeda-1/+1
2022-07-01Shorten def_span for more items.Camille GILLOT-1/+1
2022-06-16diagnostics: fix trailing spaceklensy-4/+4
2022-05-03Tweak wordingEsteban Kuber-8/+8
2022-05-03When suggesting to import an item, also suggest changing the path if appropriateEsteban Küber-4/+24
When we don't find an item we search all of them for an appropriate import and suggest `use`ing it. This is sometimes done for expressions that have paths with more than one segment. We now also suggest changing that path to work with the `use`. Fix #95413
2021-09-16Point at call span that introduced obligation for the argEsteban Kuber-44/+132
2021-08-16Use note to point at bound introducing requirementEsteban Küber-132/+264
2021-08-11Modify structured suggestion outputEsteban Küber-6/+6
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-08-04Remove trailing whitespace from error messagesFabian Wolff-2/+2
2020-08-10Point at item definition in foreign cratesEsteban Küber-1/+3
2020-08-10Tweak ordering of suggestionsEsteban Küber-8/+8
Modify logic to make it easier to follow and recover labels that would otherwise be lost.
2020-07-14Suggest struct pat on incorrect unit or tuple patEsteban Küber-2/+10
When encountering a unit or tuple pattern for a struct-like item, suggest using the correct pattern. Use `insert_field_names_local` when evaluating variants and store field names even when the list is empty in order to produce accurate structured suggestions.
2020-06-23Add re-exports to use suggestionsDan Aloni-4/+4
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-4/+4
2020-04-08Small tweaks to required bound spanEsteban Küber-44/+44
2020-01-10Point at the span for the definition of crate foreign ADTsEsteban Küber-0/+10
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-0/+5
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/+2
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-09-29Rollup merge of #64691 - estebank:unexpected-variant, r=CentrilMazdak Farrokhzad-0/+3
Point at definition when misusing ADT When given `struct Foo(usize)` and using it as `Foo {}` or `Foo`, point at `Foo`'s definition in the error.
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-44/+44
2019-09-22Point at definition when misusing ADTEsteban Küber-0/+3
When given `struct Foo(usize)` and using it as `Foo {}` or `Foo`, point at `Foo`'s definition in the error.
2019-09-19When possible point at argument causing item obligation failureEsteban Küber-88/+88
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-264/+132
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-15rustc: slice substs in ty::print instead of passing the full ones.Eduard-Mihai Burtescu-2/+2
2019-03-11Update testsVadim Petrochenkov-60/+60
2019-01-09clarify resolve typo suggestionAndy Russell-14/+20
Include the kind of the binding that we're suggesting, and use a structured suggestion.
2018-12-25Remove licensesMark Rousskov-150/+100
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-10-26Update testsOliver Scherer-4/+4
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+969