|
| 1 | +.. SPDX-License-Identifier: MIT OR Apache-2.0 |
| 2 | + SPDX-FileCopyrightText: The Ferrocene Developers |
| 3 | +
|
| 4 | +.. default-domain:: spec |
| 5 | +.. informational-page:: |
| 6 | + |
| 7 | +FLS Changelog |
| 8 | +============= |
| 9 | + |
| 10 | +This page describes the changes that have been applied to the FLS itself to |
| 11 | +address changes and new features introduced in each Rust release. Every item |
| 12 | +listed in the "Language" section of the release note is reproduced here, along |
| 13 | +with the change that has been applied due to it. |
| 14 | + |
| 15 | +.. caution:: |
| 16 | + |
| 17 | + This page is **not** an exhaustive list of all of the changes in a release, |
| 18 | + just the language changes that had an impact to the FLS. See the `release |
| 19 | + notes`_ for a full list of changes. |
| 20 | + |
| 21 | +Language changes in Rust 1.79.0 |
| 22 | +------------------------------- |
| 23 | + |
| 24 | +* `Stabilize inline \`const {}\` expressions. <https://github.com/rust-lang/rust/pull/104087/>`_ |
| 25 | + |
| 26 | + * New section: :ref:`fls_G59PiNQkVUnQ` |
| 27 | + |
| 28 | +* `Prevent opaque types being instantiated twice with different regions within the same function. <https://github.com/rust-lang/rust/pull/116935/>`_ |
| 29 | + |
| 30 | + * No change: already described in :p:`fls_hza5n5eb18ta` |
| 31 | + |
| 32 | +* `Stabilize WebAssembly target features that are in phase 4 and 5. <https://github.com/rust-lang/rust/pull/117457/>`_ |
| 33 | + |
| 34 | + * No change: ``cfg`` and ``cfg_attr`` configuration predicates are not part of the FLS |
| 35 | + |
| 36 | +* `Add the \`redundant_lifetimes\` lint to detect lifetimes which are semantically redundant. <https://github.com/rust-lang/rust/pull/118391/>`_ |
| 37 | + |
| 38 | + * No change: lints are not part of the FLS |
| 39 | + |
| 40 | +* `Stabilize the \`unnameable_types\` lint for public types that can't be named. <https://github.com/rust-lang/rust/pull/120144/>`_ |
| 41 | + |
| 42 | + * No change: lints are not part of the FLS |
| 43 | + |
| 44 | +* `Enable debuginfo in macros, and stabilize \`-C collapse-macro-debuginfo\` and \`#[collapse_debuginfo]\`. <https://github.com/rust-lang/rust/pull/120845/>`_ |
| 45 | + |
| 46 | + * New section: :ref:`fls_qyudjGHZfyJH` |
| 47 | + |
| 48 | +* `Propagate temporary lifetime extension into \`if\` and \`match\` expressions. <https://github.com/rust-lang/rust/pull/121346/>`_ |
| 49 | + |
| 50 | + * New paragraphs: :p:`fls_Rj9zhVutfQod`, :p:`fls_oodpp3LpXC13`, :p:`fls_xGThCPoTUSAi` |
| 51 | + |
| 52 | +* `Restrict promotion of \`const fn\` calls. <https://github.com/rust-lang/rust/pull/121557/>`_ |
| 53 | + |
| 54 | + * No change: already described in :p:`fls_3h5vr7xk2rrt` |
| 55 | + |
| 56 | +* `Warn against refining impls of crate-private traits with \`refining_impl_trait\` lint. <https://github.com/rust-lang/rust/pull/121720/>`_ |
| 57 | + |
| 58 | + * No change: lints are not part of the FLS |
| 59 | + |
| 60 | +* `Stabilize associated type bounds (RFC 2289). <https://github.com/rust-lang/rust/pull/122055/>`_ |
| 61 | + |
| 62 | + * New paragraph: :p:`fls_mcUMWsYcxzmZ` |
| 63 | + |
| 64 | +* `Stabilize importing \`main\` from other modules or crates. <https://github.com/rust-lang/rust/pull/122060/>`_ |
| 65 | + |
| 66 | + * No change: this lifted restriction was not previously described in the FLS |
| 67 | + |
| 68 | + * While updating the FLS to account for this feature, we realized that the |
| 69 | + way the FLS described crate types was incorrect. We rectified this: |
| 70 | + |
| 71 | + * New section: :ref:`fls_8JB3SJqamdpU` |
| 72 | + * New glossary entry: :t:`crate type` |
| 73 | + * New paragraphs: :p:`fls_unxalgMqIr3v`, :p:`fls_e7jGvXvTsFpC`, :p:`fls_kQiJPwb2Hjcc`, :p:`fls_OyFwBtDGVimT` |
| 74 | + * Updated glossary entries: :t:`binary crate`, :t:`proc-macro crate` |
| 75 | + * Updated paragraphs: :p:`fls_9ub6ks8qrang`, :p:`fls_Mf62VqAhoZ3c` |
| 76 | + * Moved paragraph: :p:`fls_sbGnkm8Ephiu` |
| 77 | + * Removed paragraph about library crates |
| 78 | + |
| 79 | +* `Check return types of function types for well-formedness <https://github.com/rust-lang/rust/pull/115538>`_ |
| 80 | + |
| 81 | + * No change: the exact trait resolution implementation is not part of the FLS |
| 82 | + |
| 83 | +* `Rework \`impl Trait\` lifetime inference <https://github.com/rust-lang/rust/pull/116891/>`_ |
| 84 | + |
| 85 | + * No change: capturing of lifestime within ``impl Trait`` types is not described in the FLS |
| 86 | + |
| 87 | +* `Change inductive trait solver cycles to be ambiguous <https://github.com/rust-lang/rust/pull/122791>`_ |
| 88 | + |
| 89 | + * No change: the exact trait solver is not part of the FLS |
| 90 | + |
| 91 | +Language changes in Rust 1.78.0 |
| 92 | +------------------------------- |
| 93 | + |
| 94 | +* `Stabilize \`#[cfg(target_abi = ...)]\` <https://github.com/rust-lang/rust/pull/119590/>`_ |
| 95 | + |
| 96 | + * No change: ``cfg`` and ``cfg_attr`` configuration predicates are not part of the FLS |
| 97 | + |
| 98 | +* `Stabilize the \`#[diagnostic]\` namespace and \`#[diagnostic::on_unimplemented]\` attribute <https://github.com/rust-lang/rust/pull/119888/>`_ |
| 99 | + |
| 100 | + * No change: tool attributes are not part of the FLS |
| 101 | + |
| 102 | +* `Make async-fn-in-trait implementable with concrete signatures <https://github.com/rust-lang/rust/pull/120103/>`_ |
| 103 | + |
| 104 | + * No change: no paragraph in the FLS forbids this prior incompatability |
| 105 | + |
| 106 | +* `Make matching on NaN a hard error, and remove the rest of \`illegal_floating_point_literal_pattern\` <https://github.com/rust-lang/rust/pull/116284/>`_ |
| 107 | + |
| 108 | + * New paragraph: :p:`fls_JP8YSbxSN0Ym` |
| 109 | + |
| 110 | +* `static mut: allow mutable reference to arbitrary types, not just slices and arrays <https://github.com/rust-lang/rust/pull/117614/>`_ |
| 111 | + |
| 112 | + * No change: this lifted restriction was not previously described in the FLS |
| 113 | + |
| 114 | +* `Extend \`invalid_reference_casting\` to include references casting to bigger memory layout <https://github.com/rust-lang/rust/pull/118983/>`_ |
| 115 | + |
| 116 | + * No change: lints are not part of the FLS |
| 117 | + |
| 118 | +* `Add \`non_contiguous_range_endpoints\` lint for singleton gaps after exclusive ranges <https://github.com/rust-lang/rust/pull/118879/>`_ |
| 119 | + |
| 120 | + * No change: lints are not part of the FLS |
| 121 | + |
| 122 | +* `Add \`wasm_c_abi\` lint for use of older wasm-bindgen versions <https://github.com/rust-lang/rust/pull/117918/>`_ |
| 123 | + |
| 124 | + * No change: lints are not part of the FLS |
| 125 | + |
| 126 | +* `Update \`indirect_structural_match\` and \`pointer_structural_match\` lints to match RFC <https://github.com/rust-lang/rust/pull/120423/>`_ |
| 127 | + |
| 128 | + * No change: lints are not part of the FLS |
| 129 | + |
| 130 | +* `Make non-\`PartialEq\`-typed consts as patterns a hard error <https://github.com/rust-lang/rust/pull/120805/>`_ |
| 131 | + |
| 132 | + * No change: already described in :p:`fls_zCswsyuitexI` |
| 133 | + |
| 134 | +* `Split \`refining_impl_trait\` lint into \`_reachable\`, \`_internal\` variants <https://github.com/rust-lang/rust/pull/121720/>`_ |
| 135 | + |
| 136 | + * No change: lints are not part of the FLS |
| 137 | + |
| 138 | +* `Remove unnecessary type inference when using associated types inside of higher ranked \`where\`-bounds <https://github.com/rust-lang/rust/pull/119849>`_ |
| 139 | + |
| 140 | + * No change: the FLS does not specify type inference to such a degree |
| 141 | + |
| 142 | +* `Weaken eager detection of cyclic types during type inference <https://github.com/rust-lang/rust/pull/119989>`_ |
| 143 | + |
| 144 | + * No change: the FLS does not specify type inference to such a degree |
| 145 | + |
| 146 | +* `\`trait Trait: Auto {}\`: allow upcasting from \`dyn Trait\` to \`dyn Trait + Auto\` <https://github.com/rust-lang/rust/pull/119338>`_ |
| 147 | + |
| 148 | +language changes in Rust 1.77.0 |
| 149 | +------------------------------- |
| 150 | + |
| 151 | +* `Reveal opaque types within the defining body for exhaustiveness checking. <https://github.com/rust-lang/rust/pull/116821/>`_ |
| 152 | + |
| 153 | + * No change: the FLS does not specify introspection of the concrete type of the match expression scrutinee to such a degree |
| 154 | + |
| 155 | +* `Stabilize C-string literals. <https://github.com/rust-lang/rust/pull/117472/>`_ |
| 156 | + |
| 157 | + * New section: :ref:`fls_U1gHCy16emVe` |
| 158 | + |
| 159 | +* `Stabilize THIR unsafeck. <https://github.com/rust-lang/rust/pull/117673/>`_ |
| 160 | + |
| 161 | + * No change: not a language change |
| 162 | + |
| 163 | +* `Add lint \`static_mut_refs\` to warn on references to mutable statics. <https://github.com/rust-lang/rust/pull/117556/>`_ |
| 164 | + |
| 165 | + * No change: lints are not part of the FLS |
| 166 | + |
| 167 | +* `Support async recursive calls (as long as they have indirection). <https://github.com/rust-lang/rust/pull/117703/>`_ |
| 168 | + |
| 169 | + * No change: this lifted restriction was not previously described in the FLS |
| 170 | + |
| 171 | +* `Undeprecate lint \`unstable_features\` and make use of it in the compiler. <https://github.com/rust-lang/rust/pull/118639/>`_ |
| 172 | + |
| 173 | + * No change: lints are not part of the FLS |
| 174 | + |
| 175 | +* `Make inductive cycles in coherence ambiguous always. <https://github.com/rust-lang/rust/pull/118649/>`_ |
| 176 | + |
| 177 | + * No change: the FLS does not describe the trait solver to such a degree |
| 178 | + |
| 179 | +* `Get rid of type-driven traversal in const-eval interning <https://github.com/rust-lang/rust/pull/119044/>`_, only as a `future compatibility lint <https://github.com/rust-lang/rust/pull/122204>`_ for now. |
| 180 | + |
| 181 | + * No change: this lifted restriction was not previously described in the FLS |
| 182 | + |
| 183 | +* `Deny braced macro invocations in let-else. <https://github.com/rust-lang/rust/pull/119062/>`_ |
| 184 | + |
| 185 | + * New paragraph: :p:`fls_1s1UikGU5YQb` |
| 186 | + |
| 187 | +.. Note: for the publicly rendered version of the FLS we want to link to |
| 188 | + upstream's release notes. In the Ferrocene subtree this should be replaced |
| 189 | + to the link to the Ferrocene release notes! |
| 190 | +.. _release notes: https://doc.rust-lang.org/releases.html |
0 commit comments