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)

Enforces that item_path_str always returns an absolute path. This is useful when building symbols that contain types, where we want the crate name to be part of the symbol.