mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Change some unimplemented! to unimpl!
This commit is contained in:
parent
25ba0d6b27
commit
a3263bafe0
@ -75,7 +75,9 @@ pub fn clif_sig_from_fn_ty<'a, 'tcx: 'a>(
|
||||
fn_ty: Ty<'tcx>,
|
||||
) -> Signature {
|
||||
let sig = ty_fn_sig(tcx, fn_ty);
|
||||
assert!(!sig.variadic, "Variadic function are not yet supported");
|
||||
if sig.variadic {
|
||||
unimpl!("Variadic function are not yet supported");
|
||||
}
|
||||
let (call_conv, inputs, output): (CallConv, Vec<Ty>, Ty) = match sig.abi {
|
||||
Abi::Rust => (CallConv::Fast, sig.inputs().to_vec(), sig.output()),
|
||||
Abi::C => (CallConv::SystemV, sig.inputs().to_vec(), sig.output()),
|
||||
|
@ -264,7 +264,7 @@ fn codegen_fn_content<'a, 'tcx: 'a>(fx: &mut FunctionCx<'a, 'tcx, impl Backend>)
|
||||
drop_place.write_place_ref(fx, arg_place);
|
||||
match ty.sty {
|
||||
ty::Dynamic(..) => {
|
||||
unimplemented!("Drop for trait object");
|
||||
unimpl!("Drop for trait object");
|
||||
}
|
||||
_ => {
|
||||
let drop_fn_ty = drop_fn.ty(fx.tcx);
|
||||
@ -1061,7 +1061,7 @@ pub fn trans_place<'a, 'tcx: 'a>(
|
||||
offset,
|
||||
min_length: _,
|
||||
from_end: false,
|
||||
} => unimplemented!(
|
||||
} => unimpl!(
|
||||
"projection const index {:?} offset {:?} not from end",
|
||||
projection.base,
|
||||
offset
|
||||
@ -1070,12 +1070,12 @@ pub fn trans_place<'a, 'tcx: 'a>(
|
||||
offset,
|
||||
min_length: _,
|
||||
from_end: true,
|
||||
} => unimplemented!(
|
||||
} => unimpl!(
|
||||
"projection const index {:?} offset {:?} from end",
|
||||
projection.base,
|
||||
offset
|
||||
),
|
||||
ProjectionElem::Subslice { from, to } => unimplemented!(
|
||||
ProjectionElem::Subslice { from, to } => unimpl!(
|
||||
"projection subslice {:?} from {} to {}",
|
||||
projection.base,
|
||||
from,
|
||||
|
Loading…
Reference in New Issue
Block a user