Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/mir-opt/build_correct_coerce.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//@ skip-filecheck

// Validate that we record the target for the `as` coercion as `for<'a> fn(&'a (), &'a ())`,
// and not `for<'a, 'b>(&'a (), &'b ())`. We previously did the latter due to a bug in
// the code that records adjustments in HIR typeck.
Expand All @@ -8,5 +6,8 @@ fn foo<'a, 'b>(_: &'a (), _: &'b ()) {}

// EMIT_MIR build_correct_coerce.main.built.after.mir
fn main() {
// CHECK-LABEL: fn main(
// CHECK: let _1: for<'a> fn(&'a (), &'a ());
// CHECK: _1 = foo as for<'a> fn(&'a (), &'a ())
let x = foo as for<'a> fn(&'a (), &'a ());
}
Loading