summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorRageking8 <tomleetyt@gmail.com>2022-10-21 17:40:36 +0800
committerRageking8 <tomleetyt@gmail.com>2022-10-21 18:04:00 +0800
commit62a2a1d257e6776bcd669ca5dd7a2c7a30017ce2 (patch)
tree0cc0e9683328f6376ca02593f2414b2b791a3f40 /compiler/rustc_trait_selection/src
parentb1ab3b738ac718da74cd4aa0bb7f362d0adbdf84 (diff)
downloadrust-62a2a1d257e6776bcd669ca5dd7a2c7a30017ce2.tar.gz
rust-62a2a1d257e6776bcd669ca5dd7a2c7a30017ce2.zip
fix some typos
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/project.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/project.rs b/compiler/rustc_trait_selection/src/traits/project.rs
index 693c1728931..c8276854016 100644
--- a/compiler/rustc_trait_selection/src/traits/project.rs
+++ b/compiler/rustc_trait_selection/src/traits/project.rs
@@ -264,7 +264,7 @@ fn project_and_unify_type<'cx, 'tcx>(
     };
     debug!(?normalized, ?obligations, "project_and_unify_type result");
     let actual = obligation.predicate.term;
-    // For an example where this is neccessary see src/test/ui/impl-trait/nested-return-type2.rs
+    // For an example where this is necessary see src/test/ui/impl-trait/nested-return-type2.rs
     // This allows users to omit re-mentioning all bounds on an associated type and just use an
     // `impl Trait` for the assoc type to add more bounds.
     let InferOk { value: actual, obligations: new } =