about summary refs log tree commit diff
path: root/src/test/ui/hygiene/globs.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-73/+0
2022-10-16Account for hygiene when suggesting typos.Camille GILLOT-2/+16
2021-10-15Bless testsCameron Steffen-2/+2
2021-09-26Do not suggest importing inaccessible itemsFabian Wolff-3/+3
2021-05-12Show macro name in 'this error originates in macro' messageAaron Hill-3/+3
When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error.
2020-06-21Prefer accessible paths in 'use' suggestionsDan Aloni-5/+1
This fixes an issue with the following sample: mod foo { mod inaccessible { pub struct X; } pub mod avail { pub struct X; } } fn main() { X; } Instead of suggesting both `use crate::foo::inaccessible::X;` and `use crate::foo::avail::X;`, it should only suggest the latter. It is done by trimming the list of suggestions from inaccessible paths if accessible paths are present. Visibility is checked with `is_accessible_from` now instead of being hard-coded. - Some tests fixes are trivial, and others require a bit more explaining, here are my comments: src/test/ui/issues/issue-35675.stderr: Only needs to make the enum public to have the suggestion make sense. src/test/ui/issues/issue-42944.stderr: Importing the tuple struct won't help because its constructor is not visible, so the attempted constructor does not work. In that case, it's better not to suggest it. The case where the constructor is public is covered in `issue-26545.rs`.
2020-05-07reword "possible candidate" import suggestionAndy Russell-4/+4
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-0/+3
2020-01-26Suggest defining type parameter when appropriateEsteban Küber-8/+7
``` error[E0412]: cannot find type `T` in this scope --> file.rs:3:12 | 3 | impl Trait<T> for Struct {} | - ^ not found in this scope | | | help: you might be missing a type parameter: `<T>` ``` Fix #64298.
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-10-13Bring attention to suggestions when the only difference is capitalizationEsteban Küber-1/+1
2019-03-11Update testsVadim Petrochenkov-5/+5
2018-12-25Remove licensesMark Rousskov-4/+4
2018-07-08Remove fallback to parent modules from lexical resolutionVadim Petrochenkov-3/+13
2018-04-12Move hygiene tests to UIVadim Petrochenkov-0/+49