Skip to content

Commit bc16711

Browse files
committed
fresh fixes
1 parent 8385345 commit bc16711

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

compiler/rustc_codegen_llvm/src/builder/autodiff.rs

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

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

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern "C" {
1616

1717
pub fn LLVMGetFunctionCallConv(F: &Value) -> c_uint;
1818
pub fn LLVMGetReturnType(T: &Type) -> &Type;
19-
pub fn LLVMGetParams(Fnc: &Value, parms: *mut &Value);
19+
pub fn LLVMGetParams(Fnc: &Value, params: *mut &Value);
2020
pub fn LLVMGetNamedFunction(M: &Module, Name: *const c_char) -> Option<&Value>;
2121
}
2222

compiler/rustc_hir_typeck/src/pat.rs

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

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ pub const fn unlikely(b: bool) -> bool {
15331533
/// Therefore, implementations must not require the user to uphold
15341534
/// any safety invariants.
15351535
///
1536-
/// The public form of this instrinsic is [`bool::select_unpredictable`].
1536+
/// The public form of this intrinsic is [`bool::select_unpredictable`].
15371537
#[unstable(feature = "core_intrinsics", issue = "none")]
15381538
#[rustc_intrinsic]
15391539
#[rustc_nounwind]

library/core/src/marker.rs

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

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)