about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorjumbatm <jumbatm@gmail.com>2020-02-12 08:37:06 +1000
committerjumbatm <jumbatm@gmail.com>2020-02-12 08:53:35 +1000
commitc1ed84e6eccbd57dde9b69e2defd4d79faf41b1f (patch)
tree3221bed373384a51f17b7a892b1c0482920b9047 /src
parent3f32e3001e3a64c1baa509d3d1734dff53f14d81 (diff)
downloadrust-c1ed84e6eccbd57dde9b69e2defd4d79faf41b1f.tar.gz
rust-c1ed84e6eccbd57dde9b69e2defd4d79faf41b1f.zip
Fix outdated doc comment.
Diffstat (limited to 'src')
-rw-r--r--src/librustc/mir/interpret/error.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/librustc/mir/interpret/error.rs b/src/librustc/mir/interpret/error.rs
index df3971a5ac3..86e7bb28e00 100644
--- a/src/librustc/mir/interpret/error.rs
+++ b/src/librustc/mir/interpret/error.rs
@@ -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>,