Skip to content

Commit 4e46301

Browse files
committed
Auto merge of rust-lang#110492 - GuillaumeGomez:rollup-n4tpbl4, r=GuillaumeGomez
Rollup of 5 pull requests Successful merges: - rust-lang#110417 (Spelling compiler) - rust-lang#110441 (5 little typos) - rust-lang#110485 (Fix bootstrap locking) - rust-lang#110488 (Add a failing rustdoc-ui test for public infinite recursive type) - rust-lang#110490 (Bump `download-ci-llvm-stamp` for loong support) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents de96f3d + e8f7b5a commit 4e46301

File tree

113 files changed

+183
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+183
-172
lines changed

compiler/rustc_ast_passes/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ ast_passes_feature_on_non_nightly = `#![feature]` may not be used on the {$chann
231231
.suggestion = remove the attribute
232232
.stable_since = the feature `{$name}` has been stable since `{$since}` and no longer requires an attribute to enable
233233
234-
ast_passes_incompatbile_features = `{$f1}` and `{$f2}` are incompatible, using them at the same time is not allowed
234+
ast_passes_incompatible_features = `{$f1}` and `{$f2}` are incompatible, using them at the same time is not allowed
235235
.help = remove one of these features
236236
237237
ast_passes_show_span = {$msg}

compiler/rustc_ast_passes/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ impl AddToDiagnostic for StableFeature {
677677
}
678678

679679
#[derive(Diagnostic)]
680-
#[diag(ast_passes_incompatbile_features)]
680+
#[diag(ast_passes_incompatible_features)]
681681
#[help]
682682
pub struct IncompatibleFeatures {
683683
#[primary_span]

compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ pub fn mut_borrow_of_mutable_ref(local_decl: &LocalDecl<'_>, local_name: Option<
11471147
// suggest removing the `&mut`.
11481148
//
11491149
// Deliberately fall into this case for all implicit self types,
1150-
// so that we don't fall in to the next case with them.
1150+
// so that we don't fall into the next case with them.
11511151
kind == hir::ImplicitSelfKind::MutRef
11521152
}
11531153
_ if Some(kw::SelfLower) == local_name => {
@@ -1235,7 +1235,7 @@ fn suggest_ampmut<'tcx>(
12351235
}
12361236
}
12371237

1238-
let (suggestability, highlight_span) = match opt_ty_info {
1238+
let (suggestibility, highlight_span) = match opt_ty_info {
12391239
// if this is a variable binding with an explicit type,
12401240
// try to highlight that for the suggestion.
12411241
Some(ty_span) => (true, ty_span),
@@ -1256,7 +1256,7 @@ fn suggest_ampmut<'tcx>(
12561256
let ty_mut = local_decl.ty.builtin_deref(true).unwrap();
12571257
assert_eq!(ty_mut.mutbl, hir::Mutability::Not);
12581258
(
1259-
suggestability,
1259+
suggestibility,
12601260
highlight_span,
12611261
if local_decl.ty.is_ref() {
12621262
format!("&mut {}", ty_mut.ty)

compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ pub fn insert_reference_to_gdb_debug_scripts_section_global(bx: &mut Builder<'_,
2222
bx.const_bitcast(get_or_insert_gdb_debug_scripts_section_global(bx), bx.type_i8p());
2323
// Load just the first byte as that's all that's necessary to force
2424
// LLVM to keep around the reference to the global.
25-
let volative_load_instruction = bx.volatile_load(bx.type_i8(), gdb_debug_scripts_section);
25+
let volatile_load_instruction = bx.volatile_load(bx.type_i8(), gdb_debug_scripts_section);
2626
unsafe {
27-
llvm::LLVMSetAlignment(volative_load_instruction, 1);
27+
llvm::LLVMSetAlignment(volatile_load_instruction, 1);
2828
}
2929
}
3030
}

compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const SINGLE_VARIANT_VIRTUAL_DISR: u64 = 0;
6262

6363
/// In CPP-like mode, we generate a union with a field for each variant and an
6464
/// explicit tag field. The field of each variant has a struct type
65-
/// that encodes the discrimiant of the variant and it's data layout.
65+
/// that encodes the discriminant of the variant and it's data layout.
6666
/// The union also has a nested enumeration type that is only used for encoding
6767
/// variant names in an efficient way. Its enumerator values do _not_ correspond
6868
/// to the enum's discriminant values.

compiler/rustc_codegen_llvm/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ mod declare;
6969
mod errors;
7070
mod intrinsic;
7171

72-
// The following is a work around that replaces `pub mod llvm;` and that fixes issue 53912.
72+
// The following is a workaround that replaces `pub mod llvm;` and that fixes issue 53912.
7373
#[path = "llvm/mod.rs"]
7474
mod llvm_;
7575
pub mod llvm {

compiler/rustc_codegen_ssa/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ codegen_ssa_processing_dymutil_failed = processing debug info with `dsymutil` fa
148148
149149
codegen_ssa_unable_to_run_dsymutil = unable to run `dsymutil`: {$error}
150150
151-
codegen_ssa_stripping_debu_info_failed = stripping debug info with `{$util}` failed: {$status}
151+
codegen_ssa_stripping_debug_info_failed = stripping debug info with `{$util}` failed: {$status}
152152
.note = {$output}
153153
154154
codegen_ssa_unable_to_run = unable to run `{$util}`: {$error}

compiler/rustc_codegen_ssa/src/back/write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ fn execute_copy_from_cache_work_item<B: ExtraBackendMethods>(
872872
let load_from_incr_comp_dir = |output_path: PathBuf, saved_path: &str| {
873873
let source_file = in_incr_comp_dir(&incr_comp_session_dir, saved_path);
874874
debug!(
875-
"copying pre-existing module `{}` from {:?} to {}",
875+
"copying preexisting module `{}` from {:?} to {}",
876876
module.name,
877877
source_file,
878878
output_path.display()

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
156156
None => {
157157
// Unfortunately, unconditionally using `llvm.used` causes
158158
// issues in handling `.init_array` with the gold linker,
159-
// but using `llvm.compiler.used` caused a nontrival amount
159+
// but using `llvm.compiler.used` caused a nontrivial amount
160160
// of unintentional ecosystem breakage -- particularly on
161161
// Mach-O targets.
162162
//

compiler/rustc_codegen_ssa/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ pub struct UnableToRunDsymutil {
424424
}
425425

426426
#[derive(Diagnostic)]
427-
#[diag(codegen_ssa_stripping_debu_info_failed)]
427+
#[diag(codegen_ssa_stripping_debug_info_failed)]
428428
#[note]
429429
pub struct StrippingDebugInfoFailed<'a> {
430430
pub util: &'a str,

compiler/rustc_const_eval/src/interpret/validity.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
784784
Abi::Scalar(scalar_layout) => {
785785
if !scalar_layout.is_uninit_valid() {
786786
// There is something to check here.
787-
let scalar = self.read_scalar(op, "initiailized scalar value")?;
787+
let scalar = self.read_scalar(op, "initialized scalar value")?;
788788
self.visit_scalar(scalar, scalar_layout)?;
789789
}
790790
}
@@ -794,7 +794,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
794794
// the other must be init.
795795
if !a_layout.is_uninit_valid() && !b_layout.is_uninit_valid() {
796796
let (a, b) =
797-
self.read_immediate(op, "initiailized scalar value")?.to_scalar_pair();
797+
self.read_immediate(op, "initialized scalar value")?.to_scalar_pair();
798798
self.visit_scalar(a, a_layout)?;
799799
self.visit_scalar(b, b_layout)?;
800800
}

compiler/rustc_const_eval/src/transform/validate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
262262
// We sometimes have to use `defining_opaque_types` for subtyping
263263
// to succeed here and figuring out how exactly that should work
264264
// is annoying. It is harmless enough to just not validate anything
265-
// in that case. We still check this after analysis as all opque
265+
// in that case. We still check this after analysis as all opaque
266266
// types have been revealed at this point.
267267
if (src, dest).has_opaque_types() {
268268
return true;

compiler/rustc_data_structures/src/profiling.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ impl SelfProfiler {
557557
let crate_name = crate_name.unwrap_or("unknown-crate");
558558
// HACK(eddyb) we need to pad the PID, strange as it may seem, as its
559559
// length can behave as a source of entropy for heap addresses, when
560-
// ASLR is disabled and the heap is otherwise determinic.
560+
// ASLR is disabled and the heap is otherwise deterministic.
561561
let pid: u32 = process::id();
562562
let filename = format!("{crate_name}-{pid:07}.rustc_profile");
563563
let path = output_directory.join(&filename);

compiler/rustc_error_codes/src/error_codes/E0026.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A struct pattern attempted to extract a non-existent field from a struct.
1+
A struct pattern attempted to extract a nonexistent field from a struct.
22

33
Erroneous code example:
44

compiler/rustc_error_codes/src/error_codes/E0208.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ error: [-, o]
3232
This error is deliberately triggered with the `#[rustc_variance]` attribute
3333
(`#![feature(rustc_attrs)]` must be enabled) and helps to show you the variance
3434
of the type's generic parameters. You can read more about variance and
35-
subtyping in [this section of the Rustnomicon]. For a more in depth look at
35+
subtyping in [this section of the Rustonomicon]. For a more in depth look at
3636
variance (including a more complete list of common variances) see
3737
[this section of the Reference]. For information on how variance is implemented
3838
in the compiler, see [this section of `rustc-dev-guide`].
@@ -41,6 +41,6 @@ This error can be easily fixed by removing the `#[rustc_variance]` attribute,
4141
the compiler's suggestion to comment it out can be applied automatically with
4242
`rustfix`.
4343

44-
[this section of the Rustnomicon]: https://doc.rust-lang.org/nomicon/subtyping.html
44+
[this section of the Rustonomicon]: https://doc.rust-lang.org/nomicon/subtyping.html
4545
[this section of the Reference]: https://doc.rust-lang.org/reference/subtyping.html#variance
4646
[this section of `rustc-dev-guide`]: https://rustc-dev-guide.rust-lang.org/variance.html

compiler/rustc_error_codes/src/error_codes/E0311.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If `no_restriction()` were to use `&T` instead of `&()` as an argument, the
2929
compiler would have added an implied bound, causing this to compile.
3030

3131
This error can be resolved by explicitly naming the elided lifetime for `x` and
32-
then explicily requiring that the generic parameter `T` outlives that lifetime:
32+
then explicitly requiring that the generic parameter `T` outlives that lifetime:
3333

3434
```
3535
fn no_restriction<'a, T: 'a>(x: &'a ()) -> &'a () {

compiler/rustc_error_codes/src/error_codes/E0457.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Plugin `..` only found in rlib format, but must be available in dylib format.
22

3-
Erroronous code example:
3+
Erroneous code example:
44

55
`rlib-plugin.rs`
66
```ignore (needs-linkage-with-other-tests)

compiler/rustc_error_codes/src/error_codes/E0576.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trait Hello {
1010
}
1111
```
1212

13-
In this example, we tried to use the non-existent associated type `You` of the
13+
In this example, we tried to use the nonexistent associated type `You` of the
1414
`Hello` trait. To fix this error, use an existing associated type:
1515

1616
```

compiler/rustc_error_codes/src/error_codes/E0609.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Attempted to access a non-existent field in a struct.
1+
Attempted to access a nonexistent field in a struct.
22

33
Erroneous code example:
44

compiler/rustc_errors/src/emitter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ impl EmitterWriter {
19801980
}
19811981
if let DisplaySuggestion::Add = show_code_change && is_item_attribute {
19821982
// The suggestion adds an entire line of code, ending on a newline, so we'll also
1983-
// print the *following* line, to provide context of what we're advicing people to
1983+
// print the *following* line, to provide context of what we're advising people to
19841984
// do. Otherwise you would only see contextless code that can be confused for
19851985
// already existing code, despite the colors and UI elements.
19861986
// We special case `#[derive(_)]\n` and other attribute suggestions, because those

compiler/rustc_expand/src/mbe/macro_rules.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ pub(super) fn try_match_macro<'matcher, T: Tracker<'matcher>>(
341341
Success(named_matches) => {
342342
debug!("Parsed arm successfully");
343343
// The matcher was `Success(..)`ful.
344-
// Merge the gated spans from parsing the matcher with the pre-existing ones.
344+
// Merge the gated spans from parsing the matcher with the preexisting ones.
345345
sess.gated_spans.merge(gated_spans_snapshot);
346346

347347
return Ok((i, named_matches));
@@ -873,7 +873,7 @@ impl<'tt> FirstSets<'tt> {
873873
}
874874
}
875875

876-
// Most `mbe::TokenTree`s are pre-existing in the matcher, but some are defined
876+
// Most `mbe::TokenTree`s are preexisting in the matcher, but some are defined
877877
// implicitly, such as opening/closing delimiters and sequence repetition ops.
878878
// This type encapsulates both kinds. It implements `Clone` while avoiding the
879879
// need for `mbe::TokenTree` to implement `Clone`.

compiler/rustc_expand/src/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ error: foo
513513
}
514514

515515
#[test]
516-
fn non_overlaping() {
516+
fn non_overlapping() {
517517
test_harness(
518518
r#"
519519
fn foo() {
@@ -552,7 +552,7 @@ error: foo
552552
}
553553

554554
#[test]
555-
fn overlaping_start_and_end() {
555+
fn overlapping_start_and_end() {
556556
test_harness(
557557
r#"
558558
fn foo() {

compiler/rustc_feature/src/removed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ declare_features! (
139139
/// Allows using `#[on_unimplemented(..)]` on traits.
140140
/// (Moved to `rustc_attrs`.)
141141
(removed, on_unimplemented, "1.40.0", None, None, None),
142-
/// A way to temporarily opt out of opt in copy. This will *never* be accepted.
142+
/// A way to temporarily opt out of opt-in copy. This will *never* be accepted.
143143
(removed, opt_out_copy, "1.0.0", None, None, None),
144144
/// Allows features specific to OIBIT (now called auto traits).
145145
/// Renamed to `auto_traits`.

compiler/rustc_hir_analysis/src/astconv/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
20612061
err.note("enum variants can't have type parameters");
20622062
let type_name = tcx.item_name(adt_def.did());
20632063
let msg = format!(
2064-
"you might have meant to specity type parameters on enum \
2064+
"you might have meant to specify type parameters on enum \
20652065
`{type_name}`"
20662066
);
20672067
let Some(args) = assoc_segment.args else { return; };

compiler/rustc_hir_analysis/src/coherence/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn visit_implementation_of_copy(tcx: TyCtxt<'_>, impl_did: LocalDefId) {
8282
let cause = traits::ObligationCause::misc(span, impl_did);
8383
match type_allowed_to_implement_copy(tcx, param_env, self_type, cause) {
8484
Ok(()) => {}
85-
Err(CopyImplementationError::InfrigingFields(fields)) => {
85+
Err(CopyImplementationError::InfringingFields(fields)) => {
8686
let mut err = struct_span_err!(
8787
tcx.sess,
8888
span,

compiler/rustc_hir_analysis/src/collect/resolve_bound_vars.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ impl<'a, 'tcx> BoundVarContext<'a, 'tcx> {
13331333

13341334
// We may fail to resolve higher-ranked lifetimes that are mentioned by APIT.
13351335
// AST-based resolution does not care for impl-trait desugaring, which are the
1336-
// responibility of lowering. This may create a mismatch between the resolution
1336+
// responsibility of lowering. This may create a mismatch between the resolution
13371337
// AST found (`region_def_id`) which points to HRTB, and what HIR allows.
13381338
// ```
13391339
// fn foo(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}

compiler/rustc_hir_typeck/src/coercion.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
976976
/// Attempt to coerce an expression to a type, and return the
977977
/// adjusted type of the expression, if successful.
978978
/// Adjustments are only recorded if the coercion succeeded.
979-
/// The expressions *must not* have any pre-existing adjustments.
979+
/// The expressions *must not* have any preexisting adjustments.
980980
pub fn try_coerce(
981981
&self,
982982
expr: &hir::Expr<'_>,
@@ -1340,7 +1340,7 @@ impl<'tcx, 'exprs, E: AsCoercionSite> CoerceMany<'tcx, 'exprs, E> {
13401340
}
13411341

13421342
/// As an optimization, you can create a `CoerceMany` with a
1343-
/// pre-existing slice of expressions. In this case, you are
1343+
/// preexisting slice of expressions. In this case, you are
13441344
/// expected to pass each element in the slice to `coerce(...)` in
13451345
/// order. This is used with arrays in particular to avoid
13461346
/// needlessly cloning the slice.

compiler/rustc_hir_typeck/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub enum ExpectedReturnTypeLabel<'tcx> {
108108

109109
#[derive(Diagnostic)]
110110
#[diag(hir_typeck_missing_parentheses_in_range, code = "E0689")]
111-
pub struct MissingParentheseInRange {
111+
pub struct MissingParenthesesInRange {
112112
#[primary_span]
113113
#[label(hir_typeck_missing_parentheses_in_range)]
114114
pub span: Span,

compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
827827
}
828828
QPath::TypeRelative(ref qself, ref segment) => {
829829
// Don't use `self.to_ty`, since this will register a WF obligation.
830-
// If we're trying to call a non-existent method on a trait
830+
// If we're trying to call a nonexistent method on a trait
831831
// (e.g. `MyTrait::missing_method`), then resolution will
832832
// give us a `QPath::TypeRelative` with a trait object as
833833
// `qself`. In that case, we want to avoid registering a WF obligation

compiler/rustc_hir_typeck/src/fn_ctxt/adjust_fulfillment_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
330330
/// expression mentioned.
331331
///
332332
/// `blame_specific_arg_if_possible` will find the most-specific expression anywhere inside
333-
/// the provided function call expression, and mark it as responsible for the fullfillment
333+
/// the provided function call expression, and mark it as responsible for the fulfillment
334334
/// error.
335335
fn blame_specific_arg_if_possible(
336336
&self,

compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
794794
return;
795795
};
796796

797-
// get all where BoundPredicates here, because they are used in to cases below
797+
// get all where BoundPredicates here, because they are used in two cases below
798798
let where_predicates = predicates
799799
.iter()
800800
.filter_map(|p| match p {

compiler/rustc_hir_typeck/src/generator_interior/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ fn check_must_not_suspend_ty<'tcx>(
650650
},
651651
)
652652
}
653-
// If drop tracking is enabled, we want to look through references, since the referrent
653+
// If drop tracking is enabled, we want to look through references, since the referent
654654
// may not be considered live across the await point.
655655
ty::Ref(_region, ty, _mutability) if fcx.sess().opts.unstable_opts.drop_tracking => {
656656
let descr_pre = &format!("{}reference{} to ", data.descr_pre, plural_suffix);

compiler/rustc_hir_typeck/src/method/suggest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
15301530
);
15311531
if pick.is_ok() {
15321532
let range_span = parent_expr.span.with_hi(expr.span.hi());
1533-
tcx.sess.emit_err(errors::MissingParentheseInRange {
1533+
tcx.sess.emit_err(errors::MissingParenthesesInRange {
15341534
span,
15351535
ty_str: ty_str.to_string(),
15361536
method_name: item_name.as_str().to_string(),

compiler/rustc_hir_typeck/src/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
16591659
if tcx.sess.teach(&err.get_code().unwrap()) {
16601660
err.note(
16611661
"This error indicates that a struct pattern attempted to \
1662-
extract a non-existent field from a struct. Struct fields \
1662+
extract a nonexistent field from a struct. Struct fields \
16631663
are identified by the name used before the colon : so struct \
16641664
patterns should resemble the declaration of the struct type \
16651665
being matched.\n\n\

compiler/rustc_hir_typeck/src/upvar.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
223223
let closure_hir_id = self.tcx.hir().local_def_id_to_hir_id(closure_def_id);
224224

225225
if should_do_rust_2021_incompatible_closure_captures_analysis(self.tcx, closure_hir_id) {
226-
self.perform_2229_migration_anaysis(closure_def_id, body_id, capture_clause, span);
226+
self.perform_2229_migration_analysis(closure_def_id, body_id, capture_clause, span);
227227
}
228228

229229
let after_feature_tys = self.final_upvar_tys(closure_def_id);
@@ -731,7 +731,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
731731

732732
/// Perform the migration analysis for RFC 2229, and emit lint
733733
/// `disjoint_capture_drop_reorder` if needed.
734-
fn perform_2229_migration_anaysis(
734+
fn perform_2229_migration_analysis(
735735
&self,
736736
closure_def_id: LocalDefId,
737737
body_id: hir::BodyId,

compiler/rustc_incremental/src/persist/dirty_clean.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub fn check_dirty_clean_annotations(tcx: TyCtxt<'_>) {
139139
return;
140140
}
141141

142-
// can't add `#[rustc_clean]` etc without opting in to this feature
142+
// can't add `#[rustc_clean]` etc without opting into this feature
143143
if !tcx.features().rustc_attrs {
144144
return;
145145
}

0 commit comments

Comments
 (0)