diff options
| author | agnarrarendelle <danny20001102@gmail.com> | 2023-07-12 01:24:24 +0800 |
|---|---|---|
| committer | agnarrarendelle <danny20001102@gmail.com> | 2023-07-12 01:25:47 +0800 |
| commit | dcfcc772821301893c882888080ab76076d81e27 (patch) | |
| tree | 00cd7f324fbe1ec5fb967bb2c9781406db638dbe /compiler/rustc_ty_utils/src | |
| parent | 55e8df2b0e3c4494b77f2431b912c51e6fe733ba (diff) | |
fixed typos
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/consts.rs b/compiler/rustc_ty_utils/src/consts.rs index 426c98012b3..fd907ececa1 100644 --- a/compiler/rustc_ty_utils/src/consts.rs +++ b/compiler/rustc_ty_utils/src/consts.rs @@ -174,7 +174,7 @@ fn recurse_build<'tcx>( } // `ExprKind::Use` happens when a `hir::ExprKind::Cast` is a // "coercion cast" i.e. using a coercion or is a no-op. - // This is important so that `N as usize as usize` doesnt unify with `N as usize`. (untested) + // This is important so that `N as usize as usize` doesn't unify with `N as usize`. (untested) &ExprKind::Use { source } => { let arg = recurse_build(tcx, body, source, root_span)?; ty::Const::new_expr(tcx, Expr::Cast(CastKind::Use, arg, node.ty), node.ty) |
