Struct rustc_session::cgu_reuse_tracker::CguReuseTracker
source · pub struct CguReuseTracker {
data: Option<Arc<Mutex<TrackerData>>>,
}
Fields§
§data: Option<Arc<Mutex<TrackerData>>>
Implementations§
source§impl CguReuseTracker
impl CguReuseTracker
pub fn new() -> CguReuseTracker
pub fn new_disabled() -> CguReuseTracker
pub fn set_actual_reuse(&self, cgu_name: &str, kind: CguReuse)
pub fn set_expectation(
&self,
cgu_name: Symbol,
cgu_user_name: &str,
error_span: Span,
expected_reuse: CguReuse,
comparison_kind: ComparisonKind
)
pub fn check_expected_reuse(&self, sess: &Session)
Trait Implementations§
source§impl Clone for CguReuseTracker
impl Clone for CguReuseTracker
source§fn clone(&self) -> CguReuseTracker
fn clone(&self) -> CguReuseTracker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CguReuseTracker
impl Send for CguReuseTracker
impl Sync for CguReuseTracker
impl Unpin for CguReuseTracker
impl UnwindSafe for CguReuseTracker
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes