-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
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
Transmute size errors use incorrect/dummy span. #7316
Comments
Nominating for production ready. |
Still relevant. |
This is marked easy. Is that actually the case? |
Looks like it may be: let sp = match ccx.tcx.items.get_copy(&ref_id.get()) {
ast_map::node_expr(e) => e.span,
_ => fail!("transmute has non-expr arg"),
}; We're in trans_intrinsic, and item is an ast::foreign_item that has a span property. It's worth a shot. |
This is just #1972 again, isn't it? transmute is an inlined item from libstd, so we freak out like usual. Nothing easy about this. |
Main bug is #1972, which is already on a milestone. Closing as dup. |
Add new lint: `rc_mutex` changelog: Add new lint `rc_mutex`. It lints on `Rc<Mutex<T>>`. `Rc<Mutex<T>>` should be corrected to `Rc<RefCell<T>>`
The text was updated successfully, but these errors were encountered: