Skip to content

Commit b4ddd91

Browse files
doctornlcnr
andauthored
Add FIXME to comment regarding local patterns
Co-authored-by: Bastian Kauschke <[email protected]>
1 parent df996e8 commit b4ddd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_infer/infer/error_reporting/need_type_info.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl<'a, 'tcx> Visitor<'tcx> for FindHirNodeVisitor<'a, 'tcx> {
8888
if let (None, Some(ty)) =
8989
(self.found_local_pattern, self.node_ty_contains_target(local.hir_id))
9090
{
91-
// There's a trade-off here - we can either check that our target span
91+
// FIXME: There's a trade-off here - we can either check that our target span
9292
// is contained in `local.span` or not. If we choose to check containment
9393
// we can avoid some spurious suggestions (see #72690), but we lose
9494
// the ability to report on things like:

0 commit comments

Comments
 (0)