diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-31 04:57:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-31 04:57:28 +0200 |
| commit | 1b7d6dbd3043a002279e9ebafc0b082f4d891200 (patch) | |
| tree | c52a1a6ff3a746fa75dc69b5edd1a15c7dfcfaae /compiler/rustc_passes | |
| parent | c90a94707f19c69a9ef5cecb016e08f771e5b294 (diff) | |
| parent | 8d7b124c1f8d3ed8784b5c1a092c5d8016f6935a (diff) | |
| download | rust-1b7d6dbd3043a002279e9ebafc0b082f4d891200.tar.gz rust-1b7d6dbd3043a002279e9ebafc0b082f4d891200.zip | |
Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errors
Spellchecking compiler comments This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues.
Diffstat (limited to 'compiler/rustc_passes')
| -rw-r--r-- | compiler/rustc_passes/src/check_const.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_passes/src/region.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_passes/src/stability.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_passes/src/check_const.rs b/compiler/rustc_passes/src/check_const.rs index 0e04a2cfb11..9e352fa5cc6 100644 --- a/compiler/rustc_passes/src/check_const.rs +++ b/compiler/rustc_passes/src/check_const.rs @@ -99,7 +99,7 @@ impl<'tcx> hir::itemlikevisit::ItemLikeVisitor<'tcx> for CheckConstTraitVisitor< } = *trait_item { // we can ignore functions that do not have default bodies: - // if those are unimplemented it will be catched by typeck. + // if those are unimplemented it will be caught by typeck. if !defaultness.has_value() || self .tcx diff --git a/compiler/rustc_passes/src/region.rs b/compiler/rustc_passes/src/region.rs index 7b21ab32f4f..d694782f9e7 100644 --- a/compiler/rustc_passes/src/region.rs +++ b/compiler/rustc_passes/src/region.rs @@ -291,7 +291,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h // like AddAssign is implemented). // For primitive types (which, despite having a trait impl, don't actually - // end up calling it), the evluation order is right-to-left. For example, + // end up calling it), the evaluation order is right-to-left. For example, // the following code snippet: // // let y = &mut 0; diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index 09be1dac6f1..84b4a803403 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -344,7 +344,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Annotator<'a, 'tcx> { match i.kind { // Inherent impls and foreign modules serve only as containers for other items, // they don't have their own stability. They still can be annotated as unstable - // and propagate this unstability to children, but this annotation is completely + // and propagate this instability to children, but this annotation is completely // optional. They inherit stability from their parents when unannotated. hir::ItemKind::Impl(hir::Impl { of_trait: None, .. }) | hir::ItemKind::ForeignMod { .. } => { @@ -557,7 +557,7 @@ impl<'tcx> Visitor<'tcx> for MissingStabilityAnnotations<'tcx> { fn visit_item(&mut self, i: &'tcx Item<'tcx>) { // Inherent impls and foreign modules serve only as containers for other items, // they don't have their own stability. They still can be annotated as unstable - // and propagate this unstability to children, but this annotation is completely + // and propagate this instability to children, but this annotation is completely // optional. They inherit stability from their parents when unannotated. if !matches!( i.kind, |
