about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-02 02:45:47 +0000
committerbors <bors@rust-lang.org>2023-08-02 02:45:47 +0000
commit90bb4184f89a24d26787a9eada781bf3c4dd3dc6 (patch)
tree0bc18bd01d1d3eabd6c4b320e416573fc5527a91 /compiler/rustc_trait_selection/src
parentaa8462b6df138d18a82e3a54d47f3b00bf01c7f4 (diff)
parentfc98c5a098ad6867fc257a21400649cfc8d4fea0 (diff)
downloadrust-90bb4184f89a24d26787a9eada781bf3c4dd3dc6.tar.gz
rust-90bb4184f89a24d26787a9eada781bf3c4dd3dc6.zip
Auto merge of #114170 - lcnr:add-commmentz, r=compiler-errors
add `dropck_outlives` comments
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/query/type_op/outlives.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/query/type_op/outlives.rs b/compiler/rustc_trait_selection/src/traits/query/type_op/outlives.rs
index 98894263374..59f4a22ac75 100644
--- a/compiler/rustc_trait_selection/src/traits/query/type_op/outlives.rs
+++ b/compiler/rustc_trait_selection/src/traits/query/type_op/outlives.rs
@@ -31,16 +31,6 @@ impl<'tcx> super::QueryTypeOp<'tcx> for DropckOutlives<'tcx> {
         tcx: TyCtxt<'tcx>,
         canonicalized: Canonical<'tcx, ParamEnvAnd<'tcx, Self>>,
     ) -> Result<CanonicalQueryResponse<'tcx, Self::QueryResponse>, NoSolution> {
-        // Subtle: note that we are not invoking
-        // `infcx.at(...).dropck_outlives(...)` here, but rather the
-        // underlying `dropck_outlives` query. This same underlying
-        // query is also used by the
-        // `infcx.at(...).dropck_outlives(...)` fn. Avoiding the
-        // wrapper means we don't need an infcx in this code, which is
-        // good because the interface doesn't give us one (so that we
-        // know we are not registering any subregion relations or
-        // other things).
-
         // FIXME convert to the type expected by the `dropck_outlives`
         // query. This should eventually be fixed by changing the
         // *underlying query*.