Skip to content

Commit 18ca345

Browse files
committed
new fixes
1 parent 48f4d2a commit 18ca345

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,7 @@ fn add_upstream_rust_crates(
27782778

27792779
if sess.target.is_like_aix {
27802780
// Unlike ELF linkers, AIX doesn't feature `DT_SONAME` to override
2781-
// the dependency name when outputing a shared library. Thus, `ld` will
2781+
// the dependency name when outputting a shared library. Thus, `ld` will
27822782
// use the full path to shared libraries as the dependency if passed it
27832783
// by default unless `noipath` is passed.
27842784
// https://www.ibm.com/docs/en/aix/7.3?topic=l-ld-command.

compiler/rustc_interface/src/passes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ pub fn create_and_enter_global_ctxt<T, F: for<'tcx> FnOnce(TyCtxt<'tcx>) -> T>(
850850
feed.output_filenames(Arc::new(outputs));
851851

852852
let res = f(tcx);
853-
// FIXME maybe run finish even when a fatal error occured? or at least tcx.alloc_self_profile_query_strings()?
853+
// FIXME maybe run finish even when a fatal error occurred? or at least tcx.alloc_self_profile_query_strings()?
854854
tcx.finish();
855855
res
856856
},

compiler/rustc_lint/src/default_could_be_derived.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ impl<'tcx> LateLintPass<'tcx> for DefaultCouldBeDerived {
129129
// }
130130
// }
131131
// where `something()` would have to be a call or path.
132-
// We have nothing meaninful to do with this.
132+
// We have nothing meaningful to do with this.
133133
return;
134134
}
135135

136-
// At least one of the fields with a default value have been overriden in
136+
// At least one of the fields with a default value have been overridden in
137137
// the `Default` implementation. We suggest removing it and relying on `..`
138138
// instead.
139139
let any_default_field_given =

compiler/rustc_middle/src/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ rustc_queries! {
264264
/// Returns whether the type alias given by `DefId` is lazy.
265265
///
266266
/// I.e., if the type alias expands / ought to expand to a [weak] [alias type]
267-
/// instead of the underyling aliased type.
267+
/// instead of the underlying aliased type.
268268
///
269269
/// Relevant for features `lazy_type_alias` and `type_alias_impl_trait`.
270270
///

compiler/rustc_passes/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ passes_no_sanitize =
557557
`#[no_sanitize({$attr_str})]` should be applied to {$accepted_kind}
558558
.label = not {$accepted_kind}
559559
560-
passes_non_exaustive_with_default_field_values =
560+
passes_non_exhaustive_with_default_field_values =
561561
`#[non_exhaustive]` can't be used to annotate items with default field values
562562
.label = this struct has default field values
563563

compiler/rustc_passes/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub(crate) struct NonExhaustiveWrongLocation {
128128
}
129129

130130
#[derive(Diagnostic)]
131-
#[diag(passes_non_exaustive_with_default_field_values)]
131+
#[diag(passes_non_exhaustive_with_default_field_values)]
132132
pub(crate) struct NonExhaustiveWithDefaultFieldValues {
133133
#[primary_span]
134134
pub attr_span: Span,

compiler/rustc_pattern_analysis/src/usefulness.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
//! # Constructors and fields
7171
//!
7272
//! In the value `Pair(Some(0), true)`, `Pair` is called the constructor of the value, and `Some(0)`
73-
//! and `true` are its fields. Every matcheable value can be decomposed in this way. Examples of
73+
//! and `true` are its fields. Every matchable value can be decomposed in this way. Examples of
7474
//! constructors are: `Some`, `None`, `(,)` (the 2-tuple constructor), `Foo {..}` (the constructor
7575
//! for a struct `Foo`), and `2` (the constructor for the number `2`).
7676
//!
@@ -102,7 +102,7 @@
102102
//! [`Constructor::is_covered_by`].
103103
//!
104104
//! Note 1: variable bindings (like the `x` in `Some(x)`) match anything, so we treat them as wildcards.
105-
//! Note 2: this only applies to matcheable values. For example a value of type `Rc<u64>` can't be
105+
//! Note 2: this only applies to matchable values. For example a value of type `Rc<u64>` can't be
106106
//! deconstructed that way.
107107
//!
108108
//!

compiler/rustc_session/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ pub struct CoverageOptions {
185185
/// to keep supporting this flag, remove it.
186186
pub no_mir_spans: bool,
187187

188-
/// `-Zcoverage-options=discard-all-spans-in-codegen`: During codgen,
188+
/// `-Zcoverage-options=discard-all-spans-in-codegen`: During codegen,
189189
/// discard all coverage spans as though they were invalid. Needed by
190190
/// regression tests for #133606, because we don't have an easy way to
191191
/// reproduce it from actual source code.

0 commit comments

Comments
 (0)