Skip to content

Commit e74695d

Browse files
committed
fresh fixes
1 parent 5bee44d commit e74695d

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
@@ -241,7 +241,7 @@ fn generate_enzyme_call<'ll>(
241241
let call = builder.call(enzyme_ty, ad_fn, &args, None);
242242

243243
// This part is a bit iffy. LLVM requires that a call to an inlineable function has some
244-
// metadata attachted to it, but we just created this code oota. Given that the
244+
// metadata attached to it, but we just created this code oota. Given that the
245245
// differentiated function already has partly confusing metadata, and given that this
246246
// affects nothing but the auttodiff IR, we take a shortcut and just steal metadata from the
247247
// 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
@@ -519,7 +519,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
519519
// This is maximally flexible, allowing e.g., `Some(mut x) | &Some(mut x)`.
520520
// In that example, `Some(mut x)` results in `Peel` whereas `&Some(mut x)` in `Reset`.
521521
| PatKind::Or(_)
522-
// Like or-patterns, guard patterns just propogate to their subpatterns.
522+
// Like or-patterns, guard patterns just propagate to their subpatterns.
523523
| PatKind::Guard(..) => AdjustMode::Pass,
524524
}
525525
}

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ pub const fn unlikely(b: bool) -> bool {
13291329
/// Therefore, implementations must not require the user to uphold
13301330
/// any safety invariants.
13311331
///
1332-
/// The public form of this instrinsic is [`bool::select_unpredictable`].
1332+
/// The public form of this intrinsic is [`bool::select_unpredictable`].
13331333
#[unstable(feature = "core_intrinsics", issue = "none")]
13341334
#[rustc_intrinsic]
13351335
#[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)