Skip to content

Commit

Permalink
Run the newly ui-ified run-pass tests under compare-mode=nll as w…
Browse files Browse the repository at this point in the history
…ell.

Fix #53764.
  • Loading branch information
pnkfelix committed Sep 21, 2018
1 parent 6219448 commit 2664db2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,11 @@ default_test_with_compare_mode!(Ui {
compare_mode: "nll"
});

default_test!(RunPass {
default_test_with_compare_mode!(RunPass {
path: "src/test/run-pass",
mode: "run-pass",
suite: "run-pass"
suite: "run-pass",
compare_mode: "nll"
});

default_test!(CompileFail {
Expand Down
4 changes: 4 additions & 0 deletions src/test/run-pass/project-defer-unification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ pub fn index_colors<Pix>(image: &ImageBuffer<Pix, Vec<u8>>)
-> ImageBuffer<Luma<u8>, Vec<u8>>
where Pix: Pixel<Subpixel=u8> + 'static,
{
// When NLL-enabled, `let mut` below is deemed unnecessary (due to
// the remaining code being unreachable); so ignore that lint.
#![allow(unused_mut)]

let mut indices: ImageBuffer<_,Vec<_>> = loop { };
for (pixel, idx) in image.pixels().zip(indices.pixels_mut()) {
// failured occurred here ^^ because we were requiring that we
Expand Down

0 comments on commit 2664db2

Please sign in to comment.