Improve readability

This commit is contained in:
Ralf Jung 2020-03-09 16:56:45 +01:00 committed by GitHub
parent 1a9fc18e83
commit 51b60b75e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,8 +415,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
AssertKind::BoundsCheck { ref len, ref index } => {
let len = self.codegen_operand(&mut bx, len).immediate();
let index = self.codegen_operand(&mut bx, index).immediate();
// It's `fn panic_bounds_check(index: usize, len: usize)`, and
// `#[track_caller]` adds an implicit third argument.
// It's `fn panic_bounds_check(index: usize, len: usize)`,
// and `#[track_caller]` adds an implicit third argument.
(lang_items::PanicBoundsCheckFnLangItem, vec![index, len, location])
}
_ => {