We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repro:
pub trait Widget {} pub trait Container { fn remove(&mut self, widget: &Widget) -> Box<Widget>; } pub struct BoxLayout { children: Vec<Box<Widget>>, } impl Container for BoxLayout { fn remove(&mut self, widget: &Widget) -> Box<Widget> { let index = self.children.iter().position(|elem| { (&**elem as *const _) == (widget as *const _) }); panic!(); } } fn main(){}
Backtrace: unable to acquire; rustc dies with SIGILL inside the unwinder.
Assertion:
thread 'rustc' panicked at 'assertion failed: self.appropriate_rvalue_mode(bcx.ccx()) == ByValue', src/librustc_trans/trans/datum.rs:634
The text was updated successfully, but these errors were encountered:
dup of #25768 (see rust-lang/rfcs#1135)
Sorry, something went wrong.
No branches or pull requests
Repro:
Backtrace: unable to acquire; rustc dies with SIGILL inside the unwinder.
Assertion:
The text was updated successfully, but these errors were encountered: