1
Fork 0

Use zero based indexing for pass_count

This commit is contained in:
Oli Scherer 2022-12-02 15:55:02 +00:00
parent 80dcc52934
commit c7e94b0efd
3 changed files with 5 additions and 3 deletions

View file

@ -57,7 +57,7 @@ pub(super) fn build_custom_mir<'tcx>(
is_polymorphic: false,
tainted_by_errors: None,
injection_phase: None,
pass_count: 1,
pass_count: 0,
};
body.local_decls.push(LocalDecl::new(return_ty, return_ty_span));