File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/librustc/mir/interpret Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 > ,
You can’t perform that action at this time.
0 commit comments