pub enum InstantiationMode {
GloballyShared {
may_conflict: bool,
},
LocalCopy,
}
🔬 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?
Describes how a translation item will be instantiated in object files.
🔬 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?
There will be exactly one instance of the given MonoItem. It will have
external linkage so that it can be linked to from other codegen units.
Fields of GloballyShared
may_conflict: bool | 🔬 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?
In some compilation scenarios we may decide to take functions that
are typically LocalCopy and instead move them to GloballyShared
to avoid translating them a bunch of times. In this situation,
however, our local copy may conflict with other crates also
inlining the same function.
This flag indicates that this situation is occurring, and informs
symbol name calculation that some extra mangling is needed to
avoid conflicts. Note that this may eventually go away entirely if
ThinLTO enables us to always have a globally shared instance of a
function within one crate's compilation.
|
🔬 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?
Each codegen unit containing a reference to the given MonoItem will
have its own private copy of the function (with internal linkage).
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more