Skip to content

Commit e6ce17a

Browse files
committed
fresh fixes
1 parent ca1097b commit e6ce17a

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

240240
// This part is a bit iffy. LLVM requires that a call to an inlineable function has some
241-
// metadata attachted to it, but we just created this code oota. Given that the
241+
// metadata attached to it, but we just created this code oota. Given that the
242242
// differentiated function already has partly confusing metadata, and given that this
243243
// affects nothing but the auttodiff IR, we take a shortcut and just steal metadata from the
244244
// 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
@@ -23,7 +23,7 @@ extern "C" {
2323
pub fn LLVMDumpValue(V: &Value);
2424
pub fn LLVMGetFunctionCallConv(F: &Value) -> c_uint;
2525
pub fn LLVMGetReturnType(T: &Type) -> &Type;
26-
pub fn LLVMGetParams(Fnc: &Value, parms: *mut &Value);
26+
pub fn LLVMGetParams(Fnc: &Value, params: *mut &Value);
2727
pub fn LLVMGetNamedFunction(M: &Module, Name: *const c_char) -> Option<&Value>;
2828
}
2929

compiler/rustc_hir_typeck/src/pat.rs

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

library/core/src/intrinsics/mod.rs

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