]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/trans/expr.rs
rollup merge of #18413 : bkoropoff/issue-18412
[rust.git] / src / librustc / middle / trans / expr.rs
index 36635da3a9e1fc2c6f2b60e155c345664d15601a..2fcc4f6af151700a88e9292c0a49f08fddea2642 100644 (file)
@@ -1265,7 +1265,7 @@ pub fn with_field_tys<R>(tcx: &ty::ctxt,
      * Helper for enumerating the field types of structs, enums, or records.
      * The optional node ID here is the node ID of the path identifying the enum
      * variant in use. If none, this cannot possibly an enum variant (so, if it
-     * is and `node_id_opt` is none, this function fails).
+     * is and `node_id_opt` is none, this function panics).
      */
 
     match ty::get(ty).sty {
@@ -1423,7 +1423,7 @@ pub fn trans_adt<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
     };
 
     // This scope holds intermediates that must be cleaned should
-    // failure occur before the ADT as a whole is ready.
+    // panic occur before the ADT as a whole is ready.
     let custom_cleanup_scope = fcx.push_custom_cleanup_scope();
 
     // First we trans the base, if we have one, to the dest