We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bac7d5b commit d55487dCopy full SHA for d55487d
compiler/stable_mir/src/mir/body.rs
@@ -40,7 +40,7 @@ impl Body {
40
41
/// Locals in `self` that correspond to this function's arguments.
42
pub fn arg_locals(&self) -> &[LocalDecl] {
43
- &self.locals[1..self.arg_count + 1]
+ &self.locals[1..][..self.arg_count]
44
}
45
46
/// Inner locals for this function. These are the locals that are
0 commit comments