Skip to content

Commit

Permalink
Fix outdated doc comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jumbatm committed Feb 11, 2020
1 parent 3f32e30 commit c1ed84e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/librustc/mir/interpret/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ impl<'tcx> ConstEvalErr<'tcx> {
}
}

/// Sets the message passed in via `message`, then adds the span labels for you, before applying
/// further modifications in `emit`. It's up to you to call emit(), stash(..), etc. within the
/// `emit` method. If you don't need to do any additional processing, just use
/// struct_generic.
/// Sets the message passed in via `message` and adds span labels before handing control back
/// to `emit` to do any final processing. It's the caller's responsibility to call emit(),
/// stash(), etc. within the `emit` function to dispose of the diagnostic properly.
fn struct_generic(
&self,
tcx: TyCtxtAt<'tcx>,
Expand Down

0 comments on commit c1ed84e

Please sign in to comment.