Skip to content

Commit 92014e7

Browse files
committed
fresh fixes
1 parent 507f777 commit 92014e7

File tree

22 files changed

+31
-29
lines changed

22 files changed

+31
-29
lines changed

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: check typos
1818
# sync version with src/tools/tidy/src/ext_tool_checks.rs
19-
uses: crate-ci/typos@v1.28.2
19+
uses: crate-ci/typos@v1.30.2
2020
with:
2121
# sync target files with src/tools/tidy/src/ext_tool_checks.rs
2222
files: ./compiler ./library ./src/bootstrap ./src/librustdoc

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ unsafe extern "C" {
4040
pub(crate) fn LLVMDumpValue(V: &Value);
4141
pub(crate) fn LLVMGetFunctionCallConv(F: &Value) -> c_uint;
4242
pub(crate) fn LLVMGetReturnType(T: &Type) -> &Type;
43-
pub(crate) fn LLVMGetParams(Fnc: &Value, parms: *mut &Value);
43+
pub(crate) fn LLVMGetParams(Fnc: &Value, params: *mut &Value);
4444
pub(crate) fn LLVMGetNamedFunction(M: &Module, Name: *const c_char) -> Option<&Value>;
4545
}
4646

compiler/rustc_codegen_ssa/src/target_features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ pub(crate) fn provide(providers: &mut Providers) {
457457
// one, just keep it.
458458
}
459459
_ => {
460-
// Overwrite stabilite.
460+
// Overwrite stability.
461461
occupied_entry.insert(stability);
462462
}
463463
}

compiler/rustc_hir/src/hir.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ impl<'hir> ConstArg<'hir, AmbigArg> {
439439
}
440440

441441
impl<'hir> ConstArg<'hir> {
442-
/// Converts a `ConstArg` in an unambigous position to one in an ambiguous position. This is
442+
/// Converts a `ConstArg` in an unambiguous position to one in an ambiguous position. This is
443443
/// fallible as the [`ConstArgKind::Infer`] variant is not present in ambiguous positions.
444444
///
445445
/// Functions accepting ambiguous consts will not handle the [`ConstArgKind::Infer`] variant, if
@@ -508,7 +508,7 @@ pub enum GenericArg<'hir> {
508508
Lifetime(&'hir Lifetime),
509509
Type(&'hir Ty<'hir, AmbigArg>),
510510
Const(&'hir ConstArg<'hir, AmbigArg>),
511-
/// Inference variables in [`GenericArg`] are always represnted by
511+
/// Inference variables in [`GenericArg`] are always represented by
512512
/// `GenericArg::Infer` instead of the `Infer` variants on [`TyKind`] and
513513
/// [`ConstArgKind`] as it is not clear until hir ty lowering whether a
514514
/// `_` argument is a type or const argument.
@@ -3323,7 +3323,7 @@ impl<'hir> Ty<'hir, AmbigArg> {
33233323
}
33243324

33253325
impl<'hir> Ty<'hir> {
3326-
/// Converts a `Ty` in an unambigous position to one in an ambiguous position. This is
3326+
/// Converts a `Ty` in an unambiguous position to one in an ambiguous position. This is
33273327
/// fallible as the [`TyKind::Infer`] variant is not present in ambiguous positions.
33283328
///
33293329
/// Functions accepting ambiguous types will not handle the [`TyKind::Infer`] variant, if
@@ -4224,7 +4224,7 @@ impl fmt::Display for Constness {
42244224
}
42254225
}
42264226

4227-
/// The actualy safety specified in syntax. We may treat
4227+
/// The actually safety specified in syntax. We may treat
42284228
/// its safety different within the type system to create a
42294229
/// "sound by default" system that needs checking this enum
42304230
/// explicitly to allow unsafe operations.

compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
10881088

10891089
// FIXME(#97583): Print associated item bindings properly (i.e., not as equality
10901090
// predicates!).
1091-
// FIXME: Turn this into a structured, translateable & more actionable suggestion.
1091+
// FIXME: Turn this into a structured, translatable & more actionable suggestion.
10921092
let mut where_bounds = vec![];
10931093
for bound in [bound, bound2].into_iter().chain(matching_candidates) {
10941094
let bound_id = bound.def_id();

compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
24612461
spans.push_span_label(param.param.span(), "");
24622462
}
24632463
}
2464-
// Highligh each parameter being depended on for a generic type.
2464+
// Highlight each parameter being depended on for a generic type.
24652465
for ((&(_, param), deps), &(_, expected_ty)) in
24662466
params_with_generics.iter().zip(&dependants).zip(formal_and_expected_inputs)
24672467
{

compiler/rustc_hir_typeck/src/pat.rs

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

compiler/rustc_macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ decl_derive! {
177177
[PrintAttribute] =>
178178
/// Derives `PrintAttribute` for `AttributeKind`.
179179
/// This macro is pretty specific to `rustc_attr_data_structures` and likely not that useful in
180-
/// other places. It's deriving something close to `Debug` without printing some extraenous
180+
/// other places. It's deriving something close to `Debug` without printing some extraneous
181181
/// things like spans.
182182
print_attribute::print_attribute
183183
}

compiler/rustc_middle/src/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub struct Body<'tcx> {
262262
/// us to see the difference and forego optimization on the inlined promoted items.
263263
pub phase: MirPhase,
264264

265-
/// How many passses we have executed since starting the current phase. Used for debug output.
265+
/// How many passes we have executed since starting the current phase. Used for debug output.
266266
pub pass_count: usize,
267267

268268
pub source: MirSource<'tcx>,

compiler/rustc_middle/src/ty/significant_drop_order.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn true_significant_drop_ty<'tcx>(
7070
}
7171
}
7272

73-
/// Returns the list of types with a "potentially sigificant" that may be dropped
73+
/// Returns the list of types with a "potentially significant" that may be dropped
7474
/// by dropping a value of type `ty`.
7575
#[instrument(level = "trace", skip(tcx, typing_env))]
7676
pub fn extract_component_raw<'tcx>(

0 commit comments

Comments
 (0)