mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
7dffd24da5
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. |
||
---|---|---|
.. | ||
auxiliary | ||
extern_fat_drop.rs | ||
extern-1.rs | ||
extern-calling-convention-test.rs | ||
extern-compare-with-return-type.rs | ||
extern-const.fixed | ||
extern-const.rs | ||
extern-const.stderr | ||
extern-crate-multiple-missing.rs | ||
extern-crate-multiple-missing.stderr | ||
extern-crate-rename.rs | ||
extern-crate-rename.stderr | ||
extern-crate-visibility.rs | ||
extern-crate-visibility.stderr | ||
extern-ffi-fn-with-body.rs | ||
extern-ffi-fn-with-body.stderr | ||
extern-foreign-crate.rs | ||
extern-macro.rs | ||
extern-macro.stderr | ||
extern-main-fn.rs | ||
extern-main-fn.stderr | ||
extern-main-issue-86110.rs | ||
extern-main-issue-86110.stderr | ||
extern-methods.rs | ||
extern-mod-abi.rs | ||
extern-mod-ordering-exe.rs | ||
extern-no-mangle.rs | ||
extern-no-mangle.stderr | ||
extern-prelude-core.rs | ||
extern-prelude-no-speculative.rs | ||
extern-prelude-std.rs | ||
extern-pub.rs | ||
extern-rust.rs | ||
extern-static-size-overflow.rs | ||
extern-static-size-overflow.stderr | ||
extern-take-value.rs | ||
extern-thiscall.rs | ||
extern-type-diag-not-similar.rs | ||
extern-type-diag-not-similar.stderr | ||
extern-types-distinct-types.rs | ||
extern-types-distinct-types.stderr | ||
extern-types-inherent-impl.rs | ||
extern-types-manual-sync-send.rs | ||
extern-types-not-sync-send.rs | ||
extern-types-not-sync-send.stderr | ||
extern-types-pointer-cast.rs | ||
extern-types-size_of_val.rs | ||
extern-types-thin-pointer.rs | ||
extern-types-trait-impl.rs | ||
extern-types-unsized.rs | ||
extern-types-unsized.stderr | ||
extern-vectorcall.rs | ||
extern-with-type-bounds.rs | ||
extern-with-type-bounds.stderr | ||
extern-wrong-value-type.rs | ||
extern-wrong-value-type.stderr | ||
issue-1251.rs | ||
issue-10025.rs | ||
issue-10763.rs | ||
issue-10764-rpass.rs | ||
issue-13655.rs | ||
issue-28324.mir.stderr | ||
issue-28324.rs | ||
issue-28324.thir.stderr | ||
issue-36122-accessing-externed-dst.rs | ||
issue-36122-accessing-externed-dst.stderr | ||
issue-64655-allow-unwind-when-calling-panic-directly.rs | ||
issue-64655-extern-rust-must-allow-unwind.rs | ||
issue-80074.rs | ||
issue-95829.rs | ||
issue-95829.stderr | ||
issue-112363-extern-item-where-clauses-debug-ice.rs | ||
issue-112363-extern-item-where-clauses-debug-ice.stderr | ||
no-mangle-associated-fn.rs | ||
not-in-block.rs | ||
not-in-block.stderr |