You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move the unwrap_exclusive function in core::private into the impl item just before it (impl<T: Send> Exclusive<T> { ...) and change it to:
#[inline(always)]
fn unwrap_exclusive(self) -> T {
let Exclusive { x: x } <- self;
let inner = unsafe { unwrap_shared_mutable_state(move x) };
let ExData { data: data, _ } <- inner;
move data
}
This yields:
/Users/tchevalier/rust2/src/libcore/private.rs:548:34: 548:38 error: illegal move from self (cannot move out of a field of self)
/Users/tchevalier/rust2/src/libcore/private.rs:548 let Exclusive { x: x } <- self;
The text was updated successfully, but these errors were encountered:
Use the symbol_name query instead of trying to infer from the link_name attribute
This prevents the calculated name from going out of sync with exported_symbols. It also avoids having to special case the panic_impl lang item.
It also makes it easier to fix miri with rust-lang#127173.
Move the
unwrap_exclusive
function incore::private
into theimpl
item just before it (impl<T: Send> Exclusive<T> { ...
) and change it to:This yields:
The text was updated successfully, but these errors were encountered: