Skip to content

Commit 902e11d

Browse files
committed
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."
1 parent 458f411 commit 902e11d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/intrinsic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ pub fn check_platform_intrinsic_type(ccx: &CrateCtxt,
379379
span_err!(tcx.sess, it.span, E0444,
380380
"platform-specific intrinsic has invalid number of \
381381
arguments: found {}, expected {}",
382-
intr.inputs.len(), sig.inputs.len());
382+
sig.inputs.len(), intr.inputs.len());
383383
return
384384
}
385385
let input_pairs = intr.inputs.iter().zip(&sig.inputs);

0 commit comments

Comments
 (0)