rust/tests/ui/stability-attribute
Esteban Küber 7dffd24da5 Tweak privacy errors to account for reachable items
Suggest publicly accessible paths for items in private mod:

  When encountering a path in non-import situations that are not reachable
  due to privacy constraints, search for any public re-exports that the
  user could use instead.

Track whether an import suggestion is offering a re-export.

When encountering a path with private segments, mention if the item at
the final path segment is not publicly accessible at all.

Add item visibility metadata to privacy errors from imports:

  On unreachable imports, record the item that was being imported in order
  to suggest publicly available re-exports or to be explicit that the item
  is not available publicly from any path.

  In order to allow this, we add a mode to `resolve_path` that will not
  add new privacy errors, nor return early if it encounters one. This way
  we can get the `Res` corresponding to the final item in the import,
  which is used in the privacy error machinery.
2023-06-22 16:50:31 +00:00
..
auxiliary fix: don't suggest similar method when unstable 2023-03-18 16:19:00 +13:00
accidental-stable-in-unstable.rs
accidental-stable-in-unstable.stderr
allow-unstable-reexport.rs
allow-unstable-reexport.stderr
allowed-through-unstable.rs
allowed-through-unstable.stderr
const-stability-attribute-implies-missing.rs const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
const-stability-attribute-implies-missing.stderr const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
const-stability-attribute-implies-no-feature.rs const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
const-stability-attribute-implies-no-feature.stderr const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
const-stability-attribute-implies-using-stable.rs const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
const-stability-attribute-implies-using-stable.stderr const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
const-stability-attribute-implies-using-unstable.rs const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
const-stability-attribute-implies-using-unstable.stderr const_eval: implies_by in rustc_const_unstable 2023-02-08 15:09:11 +00:00
ctor-stability.rs
default-body-stability-err.rs
default-body-stability-err.stderr
default-body-stability-ok-enables.rs
default-body-stability-ok-impls.rs
generics-default-stability-trait.rs
generics-default-stability-trait.stderr
generics-default-stability-where.rs
generics-default-stability-where.stderr
generics-default-stability.rs
generics-default-stability.stderr
issue-28075.rs
issue-28075.stderr
issue-28388-3.rs
issue-28388-3.stderr
issue-99286-stable-intrinsics.rs
issue-106589.rs
issue-106589.stderr
issue-109177.rs fix: don't suggest similar method when unstable 2023-03-18 16:19:00 +13:00
issue-109177.stderr fix: don't suggest similar method when unstable 2023-03-18 16:19:00 +13:00
missing-const-stability.rs
missing-const-stability.stderr
missing-stability-attr-at-top-level.rs
missing-stability-attr-at-top-level.stderr
stability-attribute-implies-missing.rs
stability-attribute-implies-missing.stderr
stability-attribute-implies-no-feature.rs
stability-attribute-implies-no-feature.stderr
stability-attribute-implies-using-stable.rs
stability-attribute-implies-using-stable.stderr
stability-attribute-implies-using-unstable.rs
stability-attribute-implies-using-unstable.stderr
stability-attribute-issue-43027.rs
stability-attribute-issue.rs
stability-attribute-issue.stderr
stability-attribute-non-staged-force-unstable.rs
stability-attribute-non-staged-force-unstable.stderr
stability-attribute-non-staged.rs
stability-attribute-non-staged.stderr
stability-attribute-sanity-2.rs
stability-attribute-sanity-2.stderr
stability-attribute-sanity-3.rs
stability-attribute-sanity-3.stderr
stability-attribute-sanity-4.rs
stability-attribute-sanity-4.stderr
stability-attribute-sanity.rs
stability-attribute-sanity.stderr
stability-attribute-trait-impl.rs Update tests 2023-04-29 13:01:46 +01:00
stability-attribute-trait-impl.stderr Update tests 2023-04-29 13:01:46 +01:00
stability-in-private-module.rs
stability-in-private-module.stderr Tweak privacy errors to account for reachable items 2023-06-22 16:50:31 +00:00
stable-in-unstable.rs
stable-in-unstable.stderr
suggest-vec-allocator-api.rs
suggest-vec-allocator-api.stderr
unresolved_stability_lint.rs Do not lint unresolved trait for ineffective unstable trait impl 2023-02-25 10:12:20 +00:00
unresolved_stability_lint.stderr Do not lint unresolved trait for ineffective unstable trait impl 2023-02-25 10:12:20 +00:00