diff --git a/src/changelog.rst b/src/changelog.rst index 29f06aea..d30b9222 100644 --- a/src/changelog.rst +++ b/src/changelog.rst @@ -19,6 +19,38 @@ with the change that has been applied due to it. just the language changes that had an impact to the FLS. See the `release notes`_ for a full list of changes. +Language changes in Rust 1.97.0 +------------------------------- + +- `Consider 'Result' and 'ControlFlow' to be equivalent to 'T' for must use lint `_ + + - Lints are outside the scope of the FLS. + +- `Add allow-by-default 'dead_code_pub_in_binary' lint for unused pub items in binary crates `_ + + - Lints are outside the scope of the FLS. + +- `Stabilize the 'div32', 'lam-bh', 'lamcas', 'ld-seq-sa' and 'scq' target features `_ + + - The target is outside the scope of the FLS + +- `Stabilize 'cfg(target_has_atomic_primitive_alignment)' `_ + + - Configuration options are environment-specific and not exhaustive + +- `Allow trailing 'self' in imports in more cases `_ + + Changed paragraphs: + + - :p:`fls_uSajfdSsbxna` + - :p:`fls_2bkcn83smy2y` + - :p:`fls_ar03D5rxjzy0` + +FLS maintenance +--------------- + +New paragraph: :p:`fls_oRdi3KXFbJcR` + Language changes in Rust 1.96.0 ------------------------------- @@ -195,7 +227,7 @@ Language changes in Rust 1.95.0 - :t:`well-formed pointer` Changed glossary entries: - + - :t:`pointer type` - :t:`raw pointer` diff --git a/src/entities-and-resolution.rst b/src/entities-and-resolution.rst index 384f36f3..f834b270 100644 --- a/src/entities-and-resolution.rst +++ b/src/entities-and-resolution.rst @@ -298,7 +298,10 @@ A :t:`path` is subject to :t:`path resolution`. If a :t:`path segment` is expressed as either :t:`keyword` ``crate``, :t:`keyword` ``$crate``, or :t:`keyword` ``Self``, then the :t:`path segment` shall be the first :t:`path segment` of a :t:`path`. :dp:`fls_uSajfdSsbxna` -If a :t:`path segment` is expressed as :t:`keyword` ``self``, then the :t:`path segment` shall be either the first :t:`path segment` of a :t:`path`, or the last :t:`path segment` of a :t:`simple import` that appears in a :t:`nesting import`. +If a :t:`path segment` is expressed as :t:`keyword` ``self``, then the :t:`path segment` shall either be the first or the last :t:`path segment` of the :t:`path`. + +:dp:`fls_oRdi3KXFbJcR` +If the last :t:`path segment` of a :t:`path` is expressed as :t:`keyword` ``self``, the :t:`entity` brought into :t:`scope` shall be a :t:`module`, an :t:`enum`, or a :t:`trait`. :dp:`fls_774uryecc2sx` A :t:`path` that starts with a :t:`path segment` that is expressed as @@ -1049,7 +1052,7 @@ An :dt:`import path prefix` is the fully constructed :t:`path` prefix of a the current :t:`use import`. :dp:`fls_2bkcn83smy2y` -A :dt:`simple import` is a :t:`use import` that brings into :t:`scope` an :t:`entity` selected by its :t:`simple import path`, or by its :t:`import path prefix` when its :t:`simple path` ends in :t:`keyword` ``self`` and the :t:`simple path` appears in a :t:`nesting import`. +A :dt:`simple import` is a :t:`use import` that brings into :t:`scope` an :t:`entity` selected by its :t:`simple import path`, or by its :t:`import path prefix` when its :t:`simple path` ends in :t:`keyword` ``self``. :dp:`fls_v3a6y2ze44v2` A :t:`glob import` is a :t:`use import` that brings all :t:`entities ` @@ -1083,7 +1086,7 @@ A :t:`simple import` brings :t:`[name]s` into :t:`scope` as follows: If the :t:`simple import` appears in a :t:`nesting import` and the last :t:`path segment` of its :t:`simple path` is expressed as :t:`keyword` ``self``, then the :t:`simple import` brings the :t:`entity` in :t:`type namespace` that the :t:`import path prefix` resolves to into :t:`scope`. * :dp:`fls_ar03D5rxjzy0` - If the :t:`simple path` is expressed as :t:`keyword` ``self``, then the :t:`simple import` brings the containing :t:`module` into :t:`scope`. + If the :t:`simple path` is expressed as :t:`keyword` ``self``, then the :t:`simple import` brings the :t:`entity` that its :t:`import path prefix` resolves to into :t:`scope`. * :dp:`fls_ce73bg0BqV1X` Otherwise bring all :t:`entities ` that the :t:`simple import path` diff --git a/version.rst b/version.rst index 4c2e048b..4470891d 100644 --- a/version.rst +++ b/version.rst @@ -2,4 +2,4 @@ SPDX-FileCopyrightText: The Ferrocene Developers SPDX-FileCopyrightText: The Rust Project Developers -.. |spec_version| replace:: 1.96.0 +.. |spec_version| replace:: 1.97.0