diff options
| author | bors <bors@rust-lang.org> | 2023-09-22 15:19:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-22 15:19:38 +0000 |
| commit | 959b2c703d45f06962da3afa086bdda70d42efcf (patch) | |
| tree | 3fcd95b0de658e25157685270746b934c8f73154 /tests/codegen | |
| parent | 01903944d8c7e3cfdba88c9c7dbc09475b37d986 (diff) | |
| parent | c4ec12f4b701d9be95143f3fa77b1f1af07de18c (diff) | |
| download | rust-959b2c703d45f06962da3afa086bdda70d42efcf.tar.gz rust-959b2c703d45f06962da3afa086bdda70d42efcf.zip | |
Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obk
adjust how closure/generator types are printed I saw `&[closure@$DIR/issue-20862.rs:2:5]` and I thought it is a slice type, because that's usually what `&[_]` is... it took me a while to realize that this is just a confusing printer and actually there's no slice. Let's use something that cannot be mistaken for a regular type.
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/issues/issue-105386-ub-in-debuginfo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/issues/issue-105386-ub-in-debuginfo.rs b/tests/codegen/issues/issue-105386-ub-in-debuginfo.rs index f345c96e6f7..54c50f840c5 100644 --- a/tests/codegen/issues/issue-105386-ub-in-debuginfo.rs +++ b/tests/codegen/issues/issue-105386-ub-in-debuginfo.rs @@ -15,8 +15,8 @@ pub fn outer_function(x: S, y: S) -> usize { // Check that we do not attempt to load from the spilled arg before it is assigned to // when generating debuginfo. // CHECK-LABEL: @outer_function -// CHECK: [[spill:%.*]] = alloca %"[closure@{{.*.rs}}:9:23: 9:25]" -// CHECK-NOT: [[ptr_tmp:%.*]] = getelementptr inbounds %"[closure@{{.*.rs}}:9:23: 9:25]", ptr [[spill]] +// CHECK: [[spill:%.*]] = alloca %"{closure@{{.*.rs}}:9:23: 9:25}" +// CHECK-NOT: [[ptr_tmp:%.*]] = getelementptr inbounds %"{closure@{{.*.rs}}:9:23: 9:25}", ptr [[spill]] // CHECK-NOT: [[load:%.*]] = load ptr, ptr // CHECK: call void @llvm.lifetime.start{{.*}}({{.*}}, ptr [[spill]]) // CHECK: [[inner:%.*]] = getelementptr inbounds %"{{.*}}", ptr [[spill]] |
