Skip to content

Commit 95344c0

Browse files
committed
Add FIXME comment
1 parent 0363f11 commit 95344c0

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_typeck/src/check

1 file changed

+3
-0
lines changed

compiler/rustc_typeck/src/check/pat.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
20472047
);
20482048
None
20492049
}
2050+
// FIXME: instead of checking for Vec only, we could check whether the
2051+
// type implements `Deref<Target=X>`; see
2052+
// https://github.com/rust-lang/rust/pull/91343#discussion_r761466979
20502053
ty::Adt(adt_def, _)
20512054
if self.tcx.is_diagnostic_item(sym::Vec, adt_def.did) =>
20522055
{

0 commit comments

Comments
 (0)