Auto merge of #116952 - compiler-errors:lifetime_capture_rules_2024, r=TaKO8Ki

Implement 2024-edition lifetime capture rules RFC

Implements rust-lang/rfcs#3498.
This commit is contained in:
bors
2023-12-10 15:51:39 +00:00
11 changed files with 125 additions and 8 deletions

View File

@@ -206,6 +206,8 @@ declare_features! (
(internal, intrinsics, "1.0.0", None, None),
/// Allows using `#[lang = ".."]` attribute for linking items to special compiler logic.
(internal, lang_items, "1.0.0", None, None),
/// Changes `impl Trait` to capture all lifetimes in scope.
(unstable, lifetime_capture_rules_2024, "CURRENT_RUSTC_VERSION", None, None),
/// Allows `#[link(..., cfg(..))]`; perma-unstable per #37406
(unstable, link_cfg, "1.14.0", None, None),
/// Allows the `multiple_supertrait_upcastable` lint.