Change error message for intrinsic signature.
Makes it so the signature of the intrinsic in the user's code is "found," while the signature that rustc knows about is "expected."
This commit is contained in:
parent
458f411213
commit
902e11dd8f
@ -379,7 +379,7 @@ pub fn check_platform_intrinsic_type(ccx: &CrateCtxt,
|
||||
span_err!(tcx.sess, it.span, E0444,
|
||||
"platform-specific intrinsic has invalid number of \
|
||||
arguments: found {}, expected {}",
|
||||
intr.inputs.len(), sig.inputs.len());
|
||||
sig.inputs.len(), intr.inputs.len());
|
||||
return
|
||||
}
|
||||
let input_pairs = intr.inputs.iter().zip(&sig.inputs);
|
||||
|
Loading…
Reference in New Issue
Block a user