diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-04-10 09:37:37 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-10 09:37:37 +0300 |
| commit | df0873e888a2f4c89f8aefbea0d58c2804abc508 (patch) | |
| tree | ff79f16b83cc614ef7fdf83f16c0dfb37b6940b2 /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs | |
| parent | d711d0a19a834fc4aa31946bf86d86f8eb8569f0 (diff) | |
| download | rust-df0873e888a2f4c89f8aefbea0d58c2804abc508.tar.gz rust-df0873e888a2f4c89f8aefbea0d58c2804abc508.zip | |
Fix a small bug with catastrophic effects
The tiny bug was that `FnFlags::DEPRECTAED_SAFE_2024` and `FnFlags::RUSTC_ALLOW_INCOHERENT_IMPLS` were assigned the same value. The catastrophic effect was that every function marked as `#[rustc_allow_incoherent_impl]` was considered safe-deprecated for edition 2024, which caused it to be considered unsafe to call when called from edition 2024. And that includes `<[_]>::into_vec()`, which is called by the `vec![]` macro. So, catastrophic effect. This innocent-looking bug probably arose from the item tree rewrite. No review would've catch that!
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions
