Make std::env::{set_var, remove_var}
unsafe in edition 2024
Allow calling these functions without `unsafe` blocks in editions up until 2021, but don't trigger the `unused_unsafe` lint for `unsafe` blocks containing these functions. Fixes #27970. Fixes #90308. CC #124866.
This commit is contained in:
parent
e9b7aa08f7
commit
5d8f9b4dc1
18 changed files with 172 additions and 57 deletions
|
@ -1575,6 +1575,7 @@ symbols! {
|
|||
rustc_def_path,
|
||||
rustc_default_body_unstable,
|
||||
rustc_deny_explicit_impl,
|
||||
rustc_deprecated_safe_2024,
|
||||
rustc_diagnostic_item,
|
||||
rustc_diagnostic_macros,
|
||||
rustc_dirty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue