Skip to content

Commit 68e0e6b

Browse files
authored
Rollup merge of #70975 - lcnr:ok, r=petrochenkov
Fix internal doc comment nits.
2 parents 6f118f2 + e39d958 commit 68e0e6b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustc_typeck/check/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ impl<'a, 'tcx> GatherLocalsVisitor<'a, 'tcx> {
11611161
fn assign(&mut self, span: Span, nid: hir::HirId, ty_opt: Option<LocalTy<'tcx>>) -> Ty<'tcx> {
11621162
match ty_opt {
11631163
None => {
1164-
// infer the variable's type
1164+
// Infer the variable's type.
11651165
let var_ty = self.fcx.next_ty_var(TypeVariableOrigin {
11661166
kind: TypeVariableOriginKind::TypeInference,
11671167
span,
@@ -1173,7 +1173,7 @@ impl<'a, 'tcx> GatherLocalsVisitor<'a, 'tcx> {
11731173
var_ty
11741174
}
11751175
Some(typ) => {
1176-
// take type that the user specified
1176+
// Take type that the user specified.
11771177
self.fcx.locals.borrow_mut().insert(nid, typ);
11781178
typ.revealed_ty
11791179
}
@@ -1244,7 +1244,7 @@ impl<'a, 'tcx> Visitor<'tcx> for GatherLocalsVisitor<'a, 'tcx> {
12441244
intravisit::walk_pat(self, p);
12451245
}
12461246

1247-
// Don't descend into the bodies of nested closures
1247+
// Don't descend into the bodies of nested closures.
12481248
fn visit_fn(
12491249
&mut self,
12501250
_: intravisit::FnKind<'tcx>,
@@ -1292,7 +1292,7 @@ fn check_fn<'a, 'tcx>(
12921292

12931293
debug!("check_fn(sig={:?}, fn_id={}, param_env={:?})", fn_sig, fn_id, param_env);
12941294

1295-
// Create the function context. This is either derived from scratch or,
1295+
// Create the function context. This is either derived from scratch or,
12961296
// in the case of closures, based on the outer context.
12971297
let mut fcx = FnCtxt::new(inherited, param_env, body.value.hir_id);
12981298
*fcx.ps.borrow_mut() = UnsafetyState::function(fn_sig.unsafety, fn_id);

src/librustc_typeck/check/writeback.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
4040
let item_def_id = self.tcx.hir().local_def_id(item_id);
4141

4242
// This attribute causes us to dump some writeback information
43-
// in the form of errors, which is uSymbolfor unit tests.
43+
// in the form of errors, which is uSymbol for unit tests.
4444
let rustc_dump_user_substs = self.tcx.has_attr(item_def_id, sym::rustc_dump_user_substs);
4545

4646
let mut wbcx = WritebackCx::new(self, body, rustc_dump_user_substs);

0 commit comments

Comments
 (0)