Skip to content

Commit d809be7

Browse files
committed
fresh fixes
1 parent c831489 commit d809be7

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

compiler/rustc_codegen_llvm/src/builder/autodiff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fn generate_enzyme_call<'ll>(
240240
let call = builder.call(enzyme_ty, ad_fn, &args, None);
241241

242242
// This part is a bit iffy. LLVM requires that a call to an inlineable function has some
243-
// metadata attachted to it, but we just created this code oota. Given that the
243+
// metadata attached to it, but we just created this code oota. Given that the
244244
// differentiated function already has partly confusing metadata, and given that this
245245
// affects nothing but the auttodiff IR, we take a shortcut and just steal metadata from the
246246
// dummy code which we inserted at a higher level.

compiler/rustc_hir_typeck/src/pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
517517
// This is maximally flexible, allowing e.g., `Some(mut x) | &Some(mut x)`.
518518
// In that example, `Some(mut x)` results in `Peel` whereas `&Some(mut x)` in `Reset`.
519519
| PatKind::Or(_)
520-
// Like or-patterns, guard patterns just propogate to their subpatterns.
520+
// Like or-patterns, guard patterns just propagate to their subpatterns.
521521
| PatKind::Guard(..) => AdjustMode::Pass,
522522
}
523523
}

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ pub const fn unlikely(b: bool) -> bool {
11851185
/// Therefore, implementations must not require the user to uphold
11861186
/// any safety invariants.
11871187
///
1188-
/// The public form of this instrinsic is [`bool::select_unpredictable`].
1188+
/// The public form of this intrinsic is [`bool::select_unpredictable`].
11891189
#[unstable(feature = "core_intrinsics", issue = "none")]
11901190
#[rustc_intrinsic]
11911191
#[rustc_nounwind]

library/core/src/marker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub trait Unsize<T: ?Sized> {
199199
///
200200
/// Constants are only allowed as patterns if (a) their type implements
201201
/// `PartialEq`, and (b) interpreting the value of the constant as a pattern
202-
/// is equialent to calling `PartialEq`. This ensures that constants used as
202+
/// is equivalent to calling `PartialEq`. This ensures that constants used as
203203
/// patterns cannot expose implementation details in an unexpected way or
204204
/// cause semver hazards.
205205
///

typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ extend-ignore-re = [
6767
# string used in benches
6868
"\"core::iter::adapters::Copie\"",
6969
"-Ccontrol-flow-guard",
70+
"concat!\\(\"CURRENT_RUSTC_VERSIO\", \"N\"\\)",
7071
]

0 commit comments

Comments
 (0)