about summary refs log tree commit diff
path: root/src/test/ui/resolve/privacy-struct-ctor.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-139/+0
2022-07-01Shorten def_span for more items.Camille GILLOT-2/+2
2021-09-26Improve diagnostics for inaccessible itemsFabian Wolff-2/+5
2021-09-26Do not suggest importing inaccessible itemsFabian Wolff-4/+2
2021-08-04Remove trailing whitespace from error messagesFabian Wolff-2/+2
2020-07-14Suggest struct pat on incorrect unit or tuple patEsteban Küber-1/+1
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-05-07reword "possible candidate" import suggestionAndy Russell-1/+1
2020-03-22Normalize wording of privacy access labelsEsteban Küber-6/+6
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-6/+42
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-0/+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-10-11resolve: shorten wording on private constructor errorDan Aloni-6/+6
2019-10-11resolve: fix error title regarding private constructorsDan Aloni-6/+6
The constructor is private, not the type. Idea credit to @petrochenkov, discussed at #65153
2019-10-09resolve: Use field spans for reporting the private constructor errorVadim Petrochenkov-10/+20
2019-09-22Point at definition when misusing ADTEsteban Küber-2/+7
When given `struct Foo(usize)` and using it as `Foo {}` or `Foo`, point at `Foo`'s definition in the error.
2019-08-09Mention that tuple structs are private if their fields areEsteban Küber-0/+12
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-02-11Only suggest imports if not imported.David Wood-12/+3
This commit modifies name resolution error reporting so that if a name is in scope and has been imported then we do not suggest importing it. This can occur when we add a label about constructors not being visible due to private fields. In these cases, we know that the struct/variant has been imported and we should silence any suggestions to import the struct/variant.
2019-01-09clarify resolve typo suggestionAndy Russell-3/+4
Include the kind of the binding that we're suggesting, and use a structured suggestion.
2018-12-25Remove licensesMark Rousskov-10/+10
2018-10-28resolve: More precise spans for privacy errorsVadim Petrochenkov-12/+12
2018-03-14update testsGuillaume Gomez-2/+2
2018-02-26Update UI testsVadim Petrochenkov-3/+3
2018-02-26Update UI testsVadim Petrochenkov-10/+10
2018-02-25Update ui testsGuillaume Gomez-0/+2
2018-01-15Further tweaks to the outputEsteban Küber-20/+26
- Properly address Variant Ctors - Show signature if span of trait method without `self` is not available
2018-01-15Suggest the correct syntax for different struct typesEsteban Küber-20/+26
2018-01-15Hide suggestion to use struct ctor when it is not visibleEsteban Küber-9/+2
2017-12-14Remove NOTE/HELP annotations from UI testsVadim Petrochenkov-14/+14
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-14/+14
2017-11-16Remove left over dead code from suggestion diagnostic refactoringOliver Schneider-3/+0
2017-08-31WIP: don't suggest placing `use` statements into expanded codeOliver Schneider-3/+3
2017-08-17Improve placement of `use` suggestionsOliver Schneider-3/+3
2017-07-18reorder span labelsgaurikholkar-3/+3
2017-07-06Only underline suggestion if it is not the only code being shownEsteban Küber-3/+3
2017-07-06Add extra whitespace for suggestionsEsteban Küber-0/+6
2017-07-06Make suggestion include the line numberEsteban Küber-3/+3
When there're more than one suggestions in the same diagnostic, they are displayed in their own block, instead of inline. In order to reduce confusion, those blocks now display the line number.
2017-07-02Revert "Change error count messages"Ariel Ben-Yehuda-1/+1
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-06-02Add E0603 error codeGuillaume Gomez-5/+5
2017-05-24Change error count messagesMichael Kohl-1/+1
See #33525 for details.
2017-05-10Example usage of multiple suggestionsOliver Schneider-6/+6
2017-04-28refac Move levenchstein before context dependent checkFreyskeyd-0/+1
Signed-off-by: Freyskeyd <simon.paitrault@gmail.com>
2017-03-15Stabilize pub(restricted)Taylor Cramer-16/+16
2017-01-29Improve diagnostics for inaccessible constructorsVadim Petrochenkov-0/+68