Auto merge of #124636 - tbu-:pr_env_unsafe, r=petrochenkov
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:
commit
91c0823ee6
24 changed files with 364 additions and 72 deletions
|
@ -1579,6 +1579,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