diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2025-03-24 07:09:18 +0000 | 
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2025-08-08 14:10:41 +0000 | 
| commit | f4094ea25236bc4ba3d9b7b03d2674ba7ab92907 (patch) | |
| tree | 0ea6b79a71777f39425d31c7843083297d21c0a5 /tests/ui/drop/dropck-normalize-errors.rs | |
| parent | 43327b5da6bc4ccbddebb935b1bcf362ccb8f993 (diff) | |
| download | rust-f4094ea25236bc4ba3d9b7b03d2674ba7ab92907.tar.gz rust-f4094ea25236bc4ba3d9b7b03d2674ba7ab92907.zip | |
update test expectations for boring locals + dropckoutlives interactions
The suboptimal error only appears with NLLs due to liveness differences where polonius cannot have as many boring locals. Sometimes this causes NLLs to emit a duplicate error as well.
Diffstat (limited to 'tests/ui/drop/dropck-normalize-errors.rs')
| -rw-r--r-- | tests/ui/drop/dropck-normalize-errors.rs | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/tests/ui/drop/dropck-normalize-errors.rs b/tests/ui/drop/dropck-normalize-errors.rs index 793122bd33d..2ade63f27c5 100644 --- a/tests/ui/drop/dropck-normalize-errors.rs +++ b/tests/ui/drop/dropck-normalize-errors.rs @@ -1,5 +1,9 @@ // Test that we don't ICE when computing the drop types for +//@ ignore-compare-mode-polonius (explicit revisions) +//@ revisions: nll polonius +//@ [polonius] compile-flags: -Zpolonius=next + trait Decode<'a> { type Decoder; } @@ -14,7 +18,7 @@ pub struct ADecoder<'a> { } fn make_a_decoder<'a>() -> ADecoder<'a> { //~^ ERROR the trait bound - //~| ERROR the trait bound + //[nll]~| ERROR the trait bound panic!() } | 
