about summary refs log tree commit diff
path: root/tests/codegen/iter-repeat-n-trivial-drop.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-07-04 16:01:16 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2023-07-20 11:33:49 -0700
commit34732e8560a3fea72bab9f2c9840897faa4f55b5 (patch)
tree0c965eb3f105dba15e765274bade0805cbb67ff3 /tests/codegen/iter-repeat-n-trivial-drop.rs
parent06a53ddc0bd3a50f9bcf2f7c373011dc7869f59f (diff)
downloadrust-34732e8560a3fea72bab9f2c9840897faa4f55b5.tar.gz
rust-34732e8560a3fea72bab9f2c9840897faa4f55b5.zip
Get `!nonnull` metadata consistently in slice iterators, without needing `assume`s
Diffstat (limited to 'tests/codegen/iter-repeat-n-trivial-drop.rs')
-rw-r--r--tests/codegen/iter-repeat-n-trivial-drop.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/codegen/iter-repeat-n-trivial-drop.rs b/tests/codegen/iter-repeat-n-trivial-drop.rs
index 68b10934a0d..0b08e578151 100644
--- a/tests/codegen/iter-repeat-n-trivial-drop.rs
+++ b/tests/codegen/iter-repeat-n-trivial-drop.rs
@@ -34,6 +34,7 @@ pub fn iter_repeat_n_next(it: &mut std::iter::RepeatN<NotCopy>) -> Option<NotCop
     // CHECK: [[EMPTY]]:
     // CHECK-NOT: br
     // CHECK: phi i16
+    // CHECK-SAME: [ %[[VAL]], %[[NOT_EMPTY]] ]
     // CHECK-NOT: br
     // CHECK: ret