Skip to content

Commit c1ed84e

Browse files
committed
Fix outdated doc comment.
1 parent 3f32e30 commit c1ed84e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustc/mir/interpret/error.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,9 @@ impl<'tcx> ConstEvalErr<'tcx> {
128128
}
129129
}
130130

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

0 commit comments

Comments
 (0)