diff options
| author | bors <bors@rust-lang.org> | 2024-05-30 12:17:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-30 12:17:06 +0000 |
| commit | 91c0823ee63e793d990bb9fed898dc95b5d6db51 (patch) | |
| tree | 9de8d7279181c7dfd1806ba60950b29dbe702bf1 /compiler/rustc_span/src | |
| parent | f3ff2f16c8f59fe5db9ec3382e4d2cc913e376a3 (diff) | |
| parent | 44f9f8bc33c0b5537c52c9e18697b83f12f19604 (diff) | |
| download | rust-91c0823ee63e793d990bb9fed898dc95b5d6db51.tar.gz rust-91c0823ee63e793d990bb9fed898dc95b5d6db51.zip | |
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.
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 25ecb9a31c6..360e355416c 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -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, |
