Skip to content

Commit 2b4c194

Browse files
authored
Rollup merge of #113539 - agnarrarendelle:master, r=workingjubilee
fixed typo Hi, I have fixed a few typos in commands. Please review my pr.
2 parents 9f8ca0e + dcfcc77 commit 2b4c194

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/consts/valtree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub enum ValTree<'tcx> {
2424
Leaf(ScalarInt),
2525

2626
//SliceOrStr(ValSlice<'tcx>),
27-
// dont use SliceOrStr for now
27+
// don't use SliceOrStr for now
2828
/// The fields of any kind of aggregate. Structs, tuples and arrays are represented by
2929
/// listing their fields' values in order.
3030
///

compiler/rustc_trait_selection/src/traits/wf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl<'a, 'tcx> WfPredicates<'a, 'tcx> {
570570
));
571571
}
572572
ty::ConstKind::Expr(_) => {
573-
// FIXME(generic_const_exprs): this doesnt verify that given `Expr(N + 1)` the
573+
// FIXME(generic_const_exprs): this doesn't verify that given `Expr(N + 1)` the
574574
// trait bound `typeof(N): Add<typeof(1)>` holds. This is currently unnecessary
575575
// as `ConstKind::Expr` is only produced via normalization of `ConstKind::Unevaluated`
576576
// which means that the `DefId` would have been typeck'd elsewhere. However in

compiler/rustc_ty_utils/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ fn recurse_build<'tcx>(
174174
}
175175
// `ExprKind::Use` happens when a `hir::ExprKind::Cast` is a
176176
// "coercion cast" i.e. using a coercion or is a no-op.
177-
// This is important so that `N as usize as usize` doesnt unify with `N as usize`. (untested)
177+
// This is important so that `N as usize as usize` doesn't unify with `N as usize`. (untested)
178178
&ExprKind::Use { source } => {
179179
let arg = recurse_build(tcx, body, source, root_span)?;
180180
ty::Const::new_expr(tcx, Expr::Cast(CastKind::Use, arg, node.ty), node.ty)

0 commit comments

Comments
 (0)