Skip to content

Commit 8d7b124

Browse files
committed
a few mode feedback fixes per @bjorn3
1 parent a6dd658 commit 8d7b124

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static_assert_size!(TyKind<'_>, 32);
284284
/// - 'l0...'li and T0...Tj are the generic parameters
285285
/// in scope on the function that defined the closure,
286286
/// - CK represents the *closure kind* (Fn vs FnMut vs FnOnce). This
287-
/// is rather hacky encoded via a scalar type. See
287+
/// is rather hackily encoded via a scalar type. See
288288
/// `Ty::to_opt_closure_kind` for details.
289289
/// - CS represents the *closure signature*, representing as a `fn()`
290290
/// type. For example, `fn(u32, u32) -> u32` would mean that the closure

compiler/rustc_mir_transform/src/simplify_try.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct ArmIdentityInfo<'tcx> {
7272
/// (StorageLive index,, StorageDead index, Local)
7373
storage_stmts: Vec<(usize, usize, Local)>,
7474

75-
/// The statements that should be removed (turned into noops)
75+
/// The statements that should be removed (turned into nops)
7676
stmts_to_remove: Vec<usize>,
7777

7878
/// Indices of debug variables that need to be adjusted to point to

compiler/rustc_target/src/spec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ pub struct TargetOptions {
12551255
/// handling COFF object files with more than 2<sup>15</sup> sections. Since each weak
12561256
/// symbol needs its own COMDAT section, weak linkage implies a large
12571257
/// number sections that easily exceeds the given limit for larger
1258-
/// codebase. Consequently we want a way to disallow weak linkage on some
1258+
/// codebases. Consequently we want a way to disallow weak linkage on some
12591259
/// platforms.
12601260
pub allows_weak_linkage: bool,
12611261
/// Whether the linker support rpaths or not. Defaults to false.

0 commit comments

Comments
 (0)