about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-42944.stderr
AgeCommit message (Collapse)AuthorLines
2021-09-15Move some tests to more reasonable directoriesCaio-27/+0
2020-10-26resolve: private fields in tuple struct ctor diagDavid Wood-2/+8
This commit improves the diagnostic emitted when a tuple struct is being constructed which has private fields so that private fields are labelled and the message is improved. Signed-off-by: David Wood <david@davidtw.co>
2020-06-21Prefer accessible paths in 'use' suggestionsDan Aloni-7/+7
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-1/+1
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-3/+3
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/+1
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-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-0/+20