Make abi::Abi
Copy
and remove a *lot* of refs
fix fix Remove more refs and clones fix more fix
This commit is contained in:
parent
86ff6aeb82
commit
5b2f757dae
33 changed files with 139 additions and 163 deletions
|
@ -465,9 +465,9 @@ fn virtual_call_violation_for_method<'tcx>(
|
|||
|
||||
let param_env = tcx.param_env(method.def_id);
|
||||
|
||||
let abi_of_ty = |ty: Ty<'tcx>| -> Option<&Abi> {
|
||||
let abi_of_ty = |ty: Ty<'tcx>| -> Option<Abi> {
|
||||
match tcx.layout_of(param_env.and(ty)) {
|
||||
Ok(layout) => Some(&layout.abi),
|
||||
Ok(layout) => Some(layout.abi),
|
||||
Err(err) => {
|
||||
// #78372
|
||||
tcx.sess.delay_span_bug(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue