Skip to content

Commit 0afda05

Browse files
committed
Add fixme
1 parent b91ccc3 commit 0afda05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustc/traits/error_reporting.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,10 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
659659
if decl.output.span().overlaps(span) && blk.expr.is_none() &&
660660
"()" == &trait_ref.self_ty().to_string()
661661
{
662-
// When encountering a method with a trait bound not satisfied
663-
// in the return type with a body that has no return, suggest
664-
// removal of semicolon on last statement.
662+
// FIXME(estebank): When encountering a method with a trait
663+
// bound not satisfied in the return type with a body that has
664+
// no return, suggest removal of semicolon on last statement.
665+
// Once that is added, close #54771.
665666
if let Some(ref stmt) = blk.stmts.last() {
666667
let sp = self.tcx.sess.source_map().end_point(stmt.span);
667668
err.span_label(sp, "consider removing this semicolon");

0 commit comments

Comments
 (0)