Skip to content

Commit ed8818e

Browse files
committed
new fixes
1 parent 4c5376e commit ed8818e

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
@@ -2776,7 +2776,7 @@ fn add_upstream_rust_crates(
27762776

27772777
if sess.target.is_like_aix {
27782778
// Unlike ELF linkers, AIX doesn't feature `DT_SONAME` to override
2779-
// the dependency name when outputing a shared library. Thus, `ld` will
2779+
// the dependency name when outputting a shared library. Thus, `ld` will
27802780
// use the full path to shared libraries as the dependency if passed it
27812781
// by default unless `noipath` is passed.
27822782
// 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
@@ -811,7 +811,7 @@ pub fn create_and_enter_global_ctxt<T, F: for<'tcx> FnOnce(TyCtxt<'tcx>) -> T>(
811811
feed.output_filenames(Arc::new(outputs));
812812

813813
let res = f(tcx);
814-
// FIXME maybe run finish even when a fatal error occured? or at least tcx.alloc_self_profile_query_strings()?
814+
// FIXME maybe run finish even when a fatal error occurred? or at least tcx.alloc_self_profile_query_strings()?
815815
tcx.finish();
816816
res
817817
},

compiler/rustc_lint/src/default_could_be_derived.rs

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

138-
// At least one of the fields with a default value have been overriden in
138+
// At least one of the fields with a default value have been overridden in
139139
// the `Default` implementation. We suggest removing it and relying on `..`
140140
// instead.
141141
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
@@ -563,7 +563,7 @@ passes_no_sanitize =
563563
`#[no_sanitize({$attr_str})]` should be applied to {$accepted_kind}
564564
.label = not {$accepted_kind}
565565
566-
passes_non_exaustive_with_default_field_values =
566+
passes_non_exhaustive_with_default_field_values =
567567
`#[non_exhaustive]` can't be used to annotate items with default field values
568568
.label = this struct has default field values
569569

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
@@ -153,7 +153,7 @@ pub struct CoverageOptions {
153153
/// to keep supporting this flag, remove it.
154154
pub no_mir_spans: bool,
155155

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

0 commit comments

Comments
 (0)