Struct rustc_session::cgu_reuse_tracker::CguReuseTracker
source · pub struct CguReuseTracker {
data: Option<Arc<Mutex<TrackerData>>>,
}
Fields
data: Option<Arc<Mutex<TrackerData>>>
Implementations
sourceimpl 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
sourceimpl Clone for CguReuseTracker
impl Clone for CguReuseTracker
sourcefn clone(&self) -> CguReuseTracker
fn clone(&self) -> CguReuseTracker
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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