Improve readability
This commit is contained in:
parent
1a9fc18e83
commit
51b60b75e7
1 changed files with 2 additions and 2 deletions
|
|
@ -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])
|
||||
}
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue