rust/src/test/ui/privacy
Vadim Petrochenkov 8e74842089 resolve: Remove visibility hacks for enum variants and trait items
Special treatment like this was necessary before `pub(restricted)` had been implemented and only two visibilities existed - `pub` and non-`pub`.
Now it's no longer necessary and the desired behavior follows from `pub(restricted)`-style visibilities naturally assigned to enum variants and trait items.
2021-02-10 22:46:44 +03:00
..
auxiliary
pub-priv-dep Fix tests from rebase 2020-10-06 11:19:33 +01:00
restricted Calculate visibilities once in resolve 2020-10-19 11:57:50 +03:00
associated-item-privacy-inherent.rs
associated-item-privacy-inherent.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
associated-item-privacy-trait.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
associated-item-privacy-trait.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
associated-item-privacy-type-binding.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
associated-item-privacy-type-binding.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
decl-macro.rs
decl-macro.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
issue-29161.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-29161.stderr Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-30079.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-30079.stderr Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-46209-private-enum-variant-reexport.rs resolve: Remove visibility hacks for enum variants and trait items 2021-02-10 22:46:44 +03:00
issue-46209-private-enum-variant-reexport.stderr resolve: Remove visibility hacks for enum variants and trait items 2021-02-10 22:46:44 +03:00
issue-57264-1.rs Apply review suggestions 2019-11-06 00:00:00 +00:00
issue-57264-2.rs Apply review suggestions 2019-11-06 00:00:00 +00:00
issue-75062-fieldless-tuple-struct.rs Handle fieldless tuple structs in diagnostic code 2020-08-05 07:59:26 -04:00
issue-75062-fieldless-tuple-struct.stderr Handle fieldless tuple structs in diagnostic code 2020-08-05 07:59:26 -04:00
legacy-ctor-visibility.rs legacy_ctor_visibility -> error 2019-11-06 11:08:23 +01:00
legacy-ctor-visibility.stderr Do not suggest similarly named enclosing item 2020-08-10 12:04:10 -07:00
priv-impl-prim-ty.rs
priv-in-bad-locations.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
priv-in-bad-locations.stderr Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
privacy-in-paths.rs
privacy-in-paths.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
privacy-ns.rs
privacy-ns1.rs improve error message for const ty param mismatch 2020-11-16 16:07:59 +01:00
privacy-ns1.stderr improve error message for const ty param mismatch 2020-11-16 16:07:59 +01:00
privacy-ns2.rs improve error message for const ty param mismatch 2020-11-16 16:07:59 +01:00
privacy-ns2.stderr improve error message for const ty param mismatch 2020-11-16 16:07:59 +01:00
privacy-reexport.rs
privacy-sanity.rs introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
privacy-sanity.stderr
privacy-ufcs.rs
privacy-ufcs.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
privacy1-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
privacy1.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
privacy1.stderr Use more targetted span for error label 2020-03-22 16:09:42 -07:00
privacy2.rs
privacy2.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
privacy3.rs
privacy3.stderr
privacy4.rs
privacy4.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
privacy5.rs resolve: fix error title regarding private constructors 2019-10-11 18:09:23 +03:00
privacy5.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
private-class-field.rs
private-impl-method.rs update tests 2020-03-12 15:47:36 -05:00
private-impl-method.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
private-in-public-assoc-ty.rs Fix tests from rebase 2020-10-06 11:19:33 +01:00
private-in-public-assoc-ty.stderr Calculate visibilities once in resolve 2020-10-19 11:57:50 +03:00
private-in-public-expr-pat.rs
private-in-public-ill-formed.rs Improve E0118 description 2020-09-11 19:48:43 +02:00
private-in-public-ill-formed.stderr Improve E0118 description 2020-09-11 19:48:43 +02:00
private-in-public-lint.rs
private-in-public-lint.stderr Calculate visibilities once in resolve 2020-10-19 11:57:50 +03:00
private-in-public-non-principal-2.rs Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
private-in-public-non-principal-2.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-in-public-non-principal.rs Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
private-in-public-non-principal.stderr Use smaller def span for functions 2020-08-22 18:41:49 -04:00
private-in-public-type-alias-impl-trait.rs Replace "existential" by "opaque" 2019-08-02 02:44:36 +01:00
private-in-public-warn.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
private-in-public-warn.stderr Calculate visibilities once in resolve 2020-10-19 11:57:50 +03:00
private-in-public.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-in-public.stderr Calculate visibilities once in resolve 2020-10-19 11:57:50 +03:00
private-inferred-type-1.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-inferred-type-1.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-inferred-type-2.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-inferred-type-2.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-inferred-type-3.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-inferred-type-3.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-inferred-type.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-inferred-type.stderr Calculate visibilities once in resolve 2020-10-19 11:57:50 +03:00
private-item-simple.rs
private-item-simple.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
private-method-cross-crate.rs update tests 2020-03-12 15:47:36 -05:00
private-method-cross-crate.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
private-method-inherited.rs update tests 2020-03-12 15:47:36 -05:00
private-method-inherited.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
private-method-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
private-method.rs update tests 2020-03-12 15:47:36 -05:00
private-method.stderr Normalize wording of privacy access labels 2020-03-22 15:36:54 -07:00
private-struct-field-cross-crate.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-struct-field-cross-crate.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-struct-field-ctor.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-struct-field-ctor.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-struct-field-pattern.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-struct-field-pattern.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-struct-field.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-struct-field.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-type-in-interface.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-type-in-interface.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
private-variant-reexport.rs resolve: Remove visibility hacks for enum variants and trait items 2021-02-10 22:46:44 +03:00
private-variant-reexport.stderr resolve: Remove visibility hacks for enum variants and trait items 2021-02-10 22:46:44 +03:00
pub-extern-privacy.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
pub-use-xcrate.rs
pub_use_mods_xcrate_exe.rs
union-field-privacy-1.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
union-field-privacy-1.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
union-field-privacy-2.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
union-field-privacy-2.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00