Module rustc::ty::item_path [] [src]

🔬 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?

Enums

RootMode [
Experimental
]

Traits

ItemPathBuffer [
Experimental
]

Unifying Trait for different kinds of item paths we might construct. The basic interface is that components get pushed: the instance can also customize how we handle the root of a crate.

Functions

characteristic_def_id_of_type [
Experimental
]

As a heuristic, when we see an impl, if we see that the 'self-type' is a type defined in the same module as the impl, we can omit including the path to the impl itself. This function tries to find a "characteristic def-id" for a type. It's just a heuristic so it makes some questionable decisions and we may want to adjust it later.

with_forced_absolute_paths [
Experimental
]

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.

with_forced_impl_filename_line [
Experimental
]

Force us to name impls with just the filename/line number. We normally try to use types. But at some points, notably while printing cycle errors, this can result in extra or suboptimal error output, so this variable disables that check.