about summary refs log tree commit diff
path: root/src/librustc/traits
diff options
context:
space:
mode:
authorAlexander Regueiro <alex@noldorin.com>2019-09-06 21:05:37 +0100
committerAlexander Regueiro <alexreg@me.com>2019-09-07 16:27:20 +0100
commitfd48ca20d366cff016cb0f9cfd8e98c44a91da10 (patch)
tree677c13f5211bb59450dba27b41fa2739fe254143 /src/librustc/traits
parentc1d29ee3c754c63fc6c8c3a522b7a71a5a19616a (diff)
downloadrust-fd48ca20d366cff016cb0f9cfd8e98c44a91da10.tar.gz
rust-fd48ca20d366cff016cb0f9cfd8e98c44a91da10.zip
Apply suggestions from code review
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Diffstat (limited to 'src/librustc/traits')
-rw-r--r--src/librustc/traits/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/traits/util.rs b/src/librustc/traits/util.rs
index 7f3c62ec994..3d36790c94b 100644
--- a/src/librustc/traits/util.rs
+++ b/src/librustc/traits/util.rs
@@ -571,7 +571,7 @@ impl<'tcx> TyCtxt<'tcx> {
                           -> Vec<ty::PolyTraitRef<'tcx>>
     {
         if source_trait_ref.def_id() == target_trait_def_id {
-            return vec![source_trait_ref]; // Shorcut the most common case.
+            return vec![source_trait_ref]; // Shortcut the most common case.
         }
 
         supertraits(self, source_trait_ref)