Skip to content

Commit

Permalink
Add fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Feb 7, 2019
1 parent b91ccc3 commit 0afda05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/librustc/traits/error_reporting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0afda05

Please sign in to comment.