Skip to content

Commit a0a20dd

Browse files
committed
fixed compile error in test
1 parent 894acb1 commit a0a20dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_interface/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ fn test_unstable_options_tracking_hash() {
815815
tracked!(packed_bundled_libs, true);
816816
tracked!(panic_abort_tests, true);
817817
tracked!(panic_in_drop, PanicStrategy::Abort);
818-
tracked!(patchable_function_entry, PatchableFunctionEntry::from_nop_count_and_offset(3, 4));
818+
tracked!(patchable_function_entry, PatchableFunctionEntry::from_total_and_prefix_nops(10, 5).expect("total >= prefix"));
819819
tracked!(plt, Some(true));
820820
tracked!(polonius, Polonius::Legacy);
821821
tracked!(precise_enum_drop_elaboration, false);

0 commit comments

Comments
 (0)