Skip to content

Commit 44577ac

Browse files
committed
new fixes
1 parent 7c85b94 commit 44577ac

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

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

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

compiler/rustc_lint/src/default_could_be_derived.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<'tcx> LateLintPass<'tcx> for DefaultCouldBeDerived {
133133
// }
134134
// }
135135
// where `something()` would have to be a call or path.
136-
// We have nothing meaninful to do with this.
136+
// We have nothing meaningful to do with this.
137137
return;
138138
}
139139

compiler/rustc_middle/src/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ rustc_queries! {
355355
/// Returns whether the type alias given by `DefId` is lazy.
356356
///
357357
/// I.e., if the type alias expands / ought to expand to a [free] [alias type]
358-
/// instead of the underyling aliased type.
358+
/// instead of the underlying aliased type.
359359
///
360360
/// Relevant for features `lazy_type_alias` and `type_alias_impl_trait`.
361361
///

compiler/rustc_passes/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ passes_no_sanitize =
537537
`#[no_sanitize({$attr_str})]` should be applied to {$accepted_kind}
538538
.label = not {$accepted_kind}
539539
540-
passes_non_exaustive_with_default_field_values =
540+
passes_non_exhaustive_with_default_field_values =
541541
`#[non_exhaustive]` can't be used to annotate items with default field values
542542
.label = this struct has default field values
543543

compiler/rustc_passes/src/errors.rs

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

159159
#[derive(Diagnostic)]
160-
#[diag(passes_non_exaustive_with_default_field_values)]
160+
#[diag(passes_non_exhaustive_with_default_field_values)]
161161
pub(crate) struct NonExhaustiveWithDefaultFieldValues {
162162
#[primary_span]
163163
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
@@ -190,7 +190,7 @@ pub struct CoverageOptions {
190190
/// to keep supporting this flag, remove it.
191191
pub no_mir_spans: bool,
192192

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

0 commit comments

Comments
 (0)