about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-02-07 06:02:17 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-03-04 13:17:54 -0800
commitf2718dc7263ae7355dd8ffdd7a788e0683b5aabf (patch)
treeed4ff258623a474af04dfd4fa6026b127b0f0e2f
parent9e8a62b73449c82c5600eea7e8ce1683aa862be2 (diff)
downloadrust-f2718dc7263ae7355dd8ffdd7a788e0683b5aabf.tar.gz
rust-f2718dc7263ae7355dd8ffdd7a788e0683b5aabf.zip
Add fixme
-rw-r--r--src/librustc/traits/error_reporting.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc/traits/error_reporting.rs b/src/librustc/traits/error_reporting.rs
index 9262cbec9f4..32fce1043d0 100644
--- a/src/librustc/traits/error_reporting.rs
+++ b/src/librustc/traits/error_reporting.rs
@@ -659,9 +659,10 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
                                 if decl.output.span().overlaps(span) && blk.expr.is_none() &&
                                     "()" == &trait_ref.self_ty().to_string()
                                 {
-                                    // When encountering a method with a trait bound not satisfied
-                                    // in the return type with a body that has no return, suggest
-                                    // removal of semicolon on last statement.
+                                    // FIXME(estebank): When encountering a method with a trait
+                                    // bound not satisfied in the return type with a body that has
+                                    // no return, suggest removal of semicolon on last statement.
+                                    // Once that is added, close #54771.
                                     if let Some(ref stmt) = blk.stmts.last() {
                                         let sp = self.tcx.sess.source_map().end_point(stmt.span);
                                         err.span_label(sp, "consider removing this semicolon");