about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-28 18:05:16 +0000
committerbors <bors@rust-lang.org>2023-08-28 18:05:16 +0000
commit93dd62024113acb782812189d01e8e239da150e7 (patch)
tree6b5165d61e81d17a754ba5da1fb334a38315a3b8 /compiler/rustc_span/src
parent9f48a8544799c65a597302886d5143456fcb340f (diff)
parentf8e0dcbf5627d3e1a70a4d1d6bd1101d5b24f1e3 (diff)
downloadrust-93dd62024113acb782812189d01e8e239da150e7.tar.gz
rust-93dd62024113acb782812189d01e8e239da150e7.zip
Auto merge of #114489 - compiler-errors:rpitit-capture-all, r=oli-obk
Make RPITITs capture all in-scope lifetimes

Much like #114616, this implements the lang team decision from this T-lang meeting on [opaque captures strategy moving forward](https://hackmd.io/sFaSIMJOQcuwCdnUvCxtuQ?view). This will be RFC'd soon, but given that RPITITs are a nightly feature, this shouldn't necessarily be blocked on that.

We unconditionally capture all lifetimes in RPITITs -- impl is not as simple as #114616, since we still need to duplicate RPIT lifetimes to make sure we reify any late-bound lifetimes in scope.

Closes #112194
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 9d4f49f9453..656deebb5d0 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1366,6 +1366,7 @@ symbols! {
         rustc_trivial_field_reads,
         rustc_unsafe_specialization_marker,
         rustc_variance,
+        rustc_variance_of_opaques,
         rustdoc,
         rustdoc_internals,
         rustdoc_missing_doc_code_examples,