Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bb92e56

Browse files
committed
Add notice
1 parent 82134af commit bb92e56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_hir_analysis/src/collect/resolve_bound_vars.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,9 @@ impl<'a, 'tcx> Visitor<'tcx> for BoundVarContext<'a, 'tcx> {
916916
// Resolving object lifetime defaults for type-relative paths requires type-dependent
917917
// resolution which we don't do here.
918918
// FIXME: How feasible would it be to track type-dependent defs here in RBVs?
919+
// NOTE: This change will likely regress a lot of existing code.
920+
// So we should make this into a future-incompat warning?
921+
// Ideally we'd fix it properly.
919922
let scope = Scope::ObjectLifetimeDefault { lifetime: None, s: self.scope };
920923
self.with(scope, |this| {
921924
this.visit_ty_unambig(qself);

0 commit comments

Comments
 (0)