Skip to content

Commit e405dab

Browse files
committedDec 20, 2022
Some style nits
1 parent 8b15302 commit e405dab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎compiler/rustc_borrowck/src/type_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
11631163
tcx,
11641164
self.param_env,
11651165
proj,
1166-
|this, field, _| {
1166+
|this, field, ()| {
11671167
let ty = this.field_ty(tcx, field);
11681168
self.normalize(ty, locations)
11691169
},

‎compiler/rustc_mir_build/src/build/expr/as_constant.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ pub fn as_constant_inner<'tcx>(
6666

6767
let literal = ConstantKind::Val(ConstValue::Scalar(Scalar::Int(lit)), ty);
6868

69-
Constant { span, user_ty: user_ty, literal }
69+
Constant { span, user_ty, literal }
7070
}
7171
ExprKind::ZstLiteral { ref user_ty } => {
7272
let user_ty = user_ty.as_ref().map(push_cuta).flatten();
7373

7474
let literal = ConstantKind::Val(ConstValue::ZeroSized, ty);
7575

76-
Constant { span, user_ty: user_ty, literal }
76+
Constant { span, user_ty, literal }
7777
}
7878
ExprKind::NamedConst { def_id, substs, ref user_ty } => {
7979
let user_ty = user_ty.as_ref().map(push_cuta).flatten();

‎compiler/rustc_mir_build/src/build/matches/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2210,7 +2210,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
22102210
BindingMode::ByValue => ty::BindingMode::BindByValue(mutability),
22112211
BindingMode::ByRef(_) => ty::BindingMode::BindByReference(mutability),
22122212
};
2213-
let local = LocalDecl::<'tcx> {
2213+
let local = LocalDecl {
22142214
mutability,
22152215
ty: var_ty,
22162216
user_ty: if user_ty.is_empty() { None } else { Some(Box::new(user_ty)) },

0 commit comments

Comments
 (0)
Please sign in to comment.