Skip to content

Commit 2664db2

Browse files
committed
Run the newly ui-ified run-pass tests under compare-mode=nll as well.
Fix #53764.
1 parent 6219448 commit 2664db2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/bootstrap/test.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,11 @@ default_test_with_compare_mode!(Ui {
755755
compare_mode: "nll"
756756
});
757757

758-
default_test!(RunPass {
758+
default_test_with_compare_mode!(RunPass {
759759
path: "src/test/run-pass",
760760
mode: "run-pass",
761-
suite: "run-pass"
761+
suite: "run-pass",
762+
compare_mode: "nll"
762763
});
763764

764765
default_test!(CompileFail {

src/test/run-pass/project-defer-unification.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ pub fn index_colors<Pix>(image: &ImageBuffer<Pix, Vec<u8>>)
9595
-> ImageBuffer<Luma<u8>, Vec<u8>>
9696
where Pix: Pixel<Subpixel=u8> + 'static,
9797
{
98+
// When NLL-enabled, `let mut` below is deemed unnecessary (due to
99+
// the remaining code being unreachable); so ignore that lint.
100+
#![allow(unused_mut)]
101+
98102
let mut indices: ImageBuffer<_,Vec<_>> = loop { };
99103
for (pixel, idx) in image.pixels().zip(indices.pixels_mut()) {
100104
// failured occurred here ^^ because we were requiring that we

0 commit comments

Comments
 (0)