about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-18 12:08:57 -0400
committerMichael Goulet <michael@errs.io>2024-08-05 10:03:17 -0400
commitfa9ae7b9d3e78a6605199efe358c0f1383d2f166 (patch)
treec38c04f3c12cee2de82d2db427db2ceb1a1b0459 /compiler/rustc_trait_selection/src
parent6a891ec4fe0db4790e9d000b15c5ec79907605b3 (diff)
downloadrust-fa9ae7b9d3e78a6605199efe358c0f1383d2f166.tar.gz
rust-fa9ae7b9d3e78a6605199efe358c0f1383d2f166.zip
Elaborate supertraits in dyn candidates
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index 2bc2a8fe693..1d9a90f0300 100644
--- a/compiler/rustc_trait_selection/src/traits/select/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs
@@ -2800,6 +2800,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
             });
         }
 
+        // Register any outlives obligations from the trait here, cc #124336.
         if matches!(self.tcx().def_kind(def_id), DefKind::Impl { of_trait: true })
             && let Some(header) = self.tcx().impl_trait_header(def_id)
         {