Function rustc::ty::item_path::with_forced_absolute_paths [] [src]

pub fn with_forced_absolute_paths<F: FnOnce() -> R, R>(f: F) -> R
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Enforces that item_path_str always returns an absolute path and also enables "type-based" impl paths. This is used when building symbols that contain types, where we want the crate name to be part of the symbol.