Run the newly ui-ified run-pass tests under compare-mode=nll as well.
Fix #53764.
This commit is contained in:
parent
6219448af6
commit
2664db235c
2 changed files with 7 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue