We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f32e30 commit c1ed84eCopy full SHA for c1ed84e
src/librustc/mir/interpret/error.rs
@@ -128,10 +128,9 @@ impl<'tcx> ConstEvalErr<'tcx> {
128
}
129
130
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.
+ /// 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.
135
fn struct_generic(
136
&self,
137
tcx: TyCtxtAt<'tcx>,
0 commit comments