Skip to content

Commit

Permalink
Rollup merge of #69077 - jumbatm:fix-comment, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fix outdated doc comment.

r? @RalfJung
  • Loading branch information
Dylan-DPC authored Feb 12, 2020
2 parents 440e5c7 + c1ed84e commit 19bd8af
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 19bd8af

Please sign in to comment.