Fix typos “a”→“an”
This commit is contained in:
parent
2ad56d5c90
commit
bf88b113ea
99 changed files with 157 additions and 157 deletions
|
@ -61,7 +61,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
unpack!(this.expr_into_dest(destination, else_blk, &this.thir[else_opt]))
|
||||
} else {
|
||||
// Body of the `if` expression without an `else` clause must return `()`, thus
|
||||
// we implicitly generate a `else {}` if it is not specified.
|
||||
// we implicitly generate an `else {}` if it is not specified.
|
||||
let correct_si = this.source_info(expr_span.shrink_to_hi());
|
||||
this.cfg.push_assign_unit(else_blk, correct_si, destination, this.tcx);
|
||||
else_blk
|
||||
|
|
|
@ -1936,7 +1936,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
// }
|
||||
// ```
|
||||
//
|
||||
// would yield a `arm_block` something like:
|
||||
// would yield an `arm_block` something like:
|
||||
//
|
||||
// ```
|
||||
// StorageLive(_4); // _4 is `x`
|
||||
|
|
|
@ -700,7 +700,7 @@ fn construct_const<'a, 'tcx>(
|
|||
builder.finish()
|
||||
}
|
||||
|
||||
/// Construct MIR for a item that has had errors in type checking.
|
||||
/// Construct MIR for an item that has had errors in type checking.
|
||||
///
|
||||
/// This is required because we may still want to run MIR passes on an item
|
||||
/// with type errors, but normal MIR construction can't handle that in general.
|
||||
|
@ -885,7 +885,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
let tcx_hir = tcx.hir();
|
||||
let hir_typeck_results = self.typeck_results;
|
||||
|
||||
// In analyze_closure() in upvar.rs we gathered a list of upvars used by a
|
||||
// In analyze_closure() in upvar.rs we gathered a list of upvars used by an
|
||||
// indexed closure and we stored in a map called closure_min_captures in TypeckResults
|
||||
// with the closure's DefId. Here, we run through that vec of UpvarIds for
|
||||
// the given closure and use the necessary information to create upvar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue