diff options
| author | Nathan Corbyn <me@nathancorbyn.com> | 2020-06-05 12:44:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-05 12:44:56 +0100 |
| commit | b4ddd9183103586ba1456241b9c117a420bb6d6b (patch) | |
| tree | bc1c3384568ecdd2cd44821fa15849617a2aea59 | |
| parent | df996e8e12b094e3aedfe0e35c2a8ded57f56890 (diff) | |
| download | rust-b4ddd9183103586ba1456241b9c117a420bb6d6b.tar.gz rust-b4ddd9183103586ba1456241b9c117a420bb6d6b.zip | |
Add FIXME to comment regarding local patterns
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
| -rw-r--r-- | src/librustc_infer/infer/error_reporting/need_type_info.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_infer/infer/error_reporting/need_type_info.rs b/src/librustc_infer/infer/error_reporting/need_type_info.rs index 355d5048d52..e097deca33b 100644 --- a/src/librustc_infer/infer/error_reporting/need_type_info.rs +++ b/src/librustc_infer/infer/error_reporting/need_type_info.rs @@ -88,7 +88,7 @@ impl<'a, 'tcx> Visitor<'tcx> for FindHirNodeVisitor<'a, 'tcx> { if let (None, Some(ty)) = (self.found_local_pattern, self.node_ty_contains_target(local.hir_id)) { - // There's a trade-off here - we can either check that our target span + // FIXME: There's a trade-off here - we can either check that our target span // is contained in `local.span` or not. If we choose to check containment // we can avoid some spurious suggestions (see #72690), but we lose // the ability to report on things like: |
