rust/src/test/ui/resolve
bors 898f36c83c Auto merge of #65153 - da-x:issue-58017, r=petrochenkov
Improve message when attempting to instantiate tuple structs with private fields

Fixes #58017, fixes #39703.

```
error[E0603]: tuple struct `Error` is private
  --> main.rs:22:16
   |
2  |     pub struct Error(usize, pub usize, usize);
   |                      -----             ----- field is private
   |                      |
   |                      field is private
...
22 |     let x = a::Error(3, 1, 2);
   |                ^^^^^
   |
   = note: a tuple struct constructor is private if any of its fields is private
```
2019-10-10 19:40:48 +00:00
..
auxiliary
block-with-trait-parent.rs resolve: Adjust hygienic_lexical_parent to account for enum and trait modules 2019-09-07 17:42:24 +03:00
enums-are-namespaced-xc.rs
enums-are-namespaced-xc.stderr diagnostics: Describe crate root modules in DefKind::Mod as "crate" 2019-08-10 23:17:20 +03:00
issue-2356.rs
issue-2356.stderr
issue-3907-2.rs
issue-3907-2.stderr account for DUMMY_SP and correct wording 2019-09-02 22:11:29 -07:00
issue-3907.rs
issue-3907.stderr
issue-5035-2.rs
issue-5035-2.stderr
issue-5035.rs
issue-5035.stderr
issue-6702.rs
issue-6702.stderr Point at definition when misusing ADT 2019-09-22 11:27:55 -07:00
issue-14254.rs
issue-14254.stderr
issue-16058.rs
issue-16058.stderr
issue-17518.rs
issue-17518.stderr
issue-18252.rs
issue-18252.stderr Point at definition when misusing ADT 2019-09-22 11:27:55 -07:00
issue-19452.rs
issue-19452.stderr Point at definition when misusing ADT 2019-09-22 11:27:55 -07:00
issue-21221-1.rs
issue-21221-1.stderr
issue-21221-2.rs
issue-21221-2.stderr
issue-21221-3.rs
issue-21221-3.stderr
issue-21221-4.rs
issue-21221-4.stderr
issue-22692.rs
issue-22692.stderr
issue-23305.rs
issue-23305.stderr
issue-24968.rs
issue-24968.stderr
issue-33876.rs
issue-33876.stderr
issue-39226.rs
issue-39226.stderr Point at definition when misusing ADT 2019-09-22 11:27:55 -07:00
issue-54379.rs
issue-54379.stderr
issue-57523.rs
issue-65025-extern-static-parent-generics.rs resolve: prohibit foreign statics w/ generics 2019-10-08 18:46:24 +01:00
issue-65025-extern-static-parent-generics.stderr resolve: prohibit foreign statics w/ generics 2019-10-08 18:46:24 +01:00
issue-65035-static-with-parent-generics.rs resolve: prohibit foreign statics w/ generics 2019-10-08 18:46:24 +01:00
issue-65035-static-with-parent-generics.stderr resolve: prohibit foreign statics w/ generics 2019-10-08 18:46:24 +01:00
levenshtein.rs
levenshtein.stderr resolve: Visit all scopes to collect suggestion candidates for unresolved macros 2019-07-18 13:42:45 +03:00
name-clash-nullary.rs
name-clash-nullary.stderr
privacy-enum-ctor.rs
privacy-enum-ctor.stderr Point at definition when misusing ADT 2019-09-22 11:27:55 -07:00
privacy-struct-ctor.rs
privacy-struct-ctor.stderr resolve: Use field spans for reporting the private constructor error 2019-10-09 18:07:22 +03:00
resolve-assoc-suggestions.rs
resolve-assoc-suggestions.stderr update ui tests 2019-09-25 16:41:05 +02:00
resolve-bad-import-prefix.rs
resolve-bad-import-prefix.stderr
resolve-bad-visibility.rs resolve: Move late resolution into a separate visitor 2019-08-10 13:15:15 +03:00
resolve-bad-visibility.stderr resolve: Address FIXME from the previous commit 2019-08-10 13:48:17 +03:00
resolve-conflict-extern-crate-vs-extern-crate.rs Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
resolve-conflict-extern-crate-vs-extern-crate.stderr Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
resolve-conflict-import-vs-extern-crate.rs
resolve-conflict-import-vs-extern-crate.stderr
resolve-conflict-import-vs-import.rs
resolve-conflict-import-vs-import.stderr
resolve-conflict-item-vs-extern-crate.rs
resolve-conflict-item-vs-extern-crate.stderr
resolve-conflict-item-vs-import.rs
resolve-conflict-item-vs-import.stderr
resolve-conflict-type-vs-import.rs
resolve-conflict-type-vs-import.stderr
resolve-hint-macro.rs
resolve-hint-macro.stderr
resolve-inconsistent-binding-mode.rs
resolve-inconsistent-binding-mode.stderr
resolve-inconsistent-names.rs Suggest using a qualified path in patterns with inconsistent bindings 2019-08-10 21:09:53 +00:00
resolve-inconsistent-names.stderr Apply suggestions from code review 2019-08-10 21:09:53 +00:00
resolve-label.rs
resolve-label.stderr
resolve-primitive-fallback.rs
resolve-primitive-fallback.stderr
resolve-self-in-impl-2.rs
resolve-self-in-impl-2.stderr
resolve-self-in-impl.rs
resolve-self-in-impl.stderr
resolve-speculative-adjustment.rs
resolve-speculative-adjustment.stderr
resolve-type-param-in-item-in-trait.rs
resolve-type-param-in-item-in-trait.stderr
resolve-unknown-trait.rs
resolve-unknown-trait.stderr
resolve-variant-assoc-item.rs
resolve-variant-assoc-item.stderr
suggest-path-instead-of-mod-dot-item.rs
suggest-path-instead-of-mod-dot-item.stderr
token-error-correct-2.rs
token-error-correct-2.stderr
token-error-correct-3.rs
token-error-correct-3.stderr
token-error-correct.rs
token-error-correct.stderr
tuple-struct-alias.rs
tuple-struct-alias.stderr
unboxed-closure-sugar-nonexistent-trait.rs
unboxed-closure-sugar-nonexistent-trait.stderr
unresolved_static_type_field.rs
unresolved_static_type_field.stderr
use_suggestion_placement.rs
use_suggestion_placement.stderr
visibility-indeterminate.rs resolve: Remove ! from "cannot find" diagnostics for macros 2019-09-15 13:22:07 +03:00
visibility-indeterminate.stderr resolve: Remove ! from "cannot find" diagnostics for macros 2019-09-15 13:22:07 +03:00