diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-06-04 21:36:29 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2024-07-17 14:39:56 +0200 |
| commit | bf96c56e840971e931e2e11329b8d7b32ac2eab9 (patch) | |
| tree | 70d2f3980cf2cd64619914afd96354ed4df9a5c0 /tests/ui/rust-2024 | |
| parent | cb12b52f160c633551bd6e5be8d4c6e2e8660950 (diff) | |
| download | rust-bf96c56e840971e931e2e11329b8d7b32ac2eab9.tar.gz rust-bf96c56e840971e931e2e11329b8d7b32ac2eab9.zip | |
Rename `deprecated_safe` lint to `deprecated_safe_2024`
Create a lint group `deprecated_safe` that includes `deprecated_safe_2024`. Addresses https://github.com/rust-lang/rust/issues/124866#issuecomment-2142814375.
Diffstat (limited to 'tests/ui/rust-2024')
| -rw-r--r-- | tests/ui/rust-2024/unsafe-env-suggestion.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/rust-2024/unsafe-env-suggestion.rs | 2 | ||||
| -rw-r--r-- | tests/ui/rust-2024/unsafe-env-suggestion.stderr | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/rust-2024/unsafe-env-suggestion.fixed b/tests/ui/rust-2024/unsafe-env-suggestion.fixed index 1f3d2dc0a31..eba35180ef6 100644 --- a/tests/ui/rust-2024/unsafe-env-suggestion.fixed +++ b/tests/ui/rust-2024/unsafe-env-suggestion.fixed @@ -1,6 +1,6 @@ //@ run-rustfix -#![deny(deprecated_safe)] +#![deny(deprecated_safe_2024)] use std::env; diff --git a/tests/ui/rust-2024/unsafe-env-suggestion.rs b/tests/ui/rust-2024/unsafe-env-suggestion.rs index 3bd169973e3..c039d7f2583 100644 --- a/tests/ui/rust-2024/unsafe-env-suggestion.rs +++ b/tests/ui/rust-2024/unsafe-env-suggestion.rs @@ -1,6 +1,6 @@ //@ run-rustfix -#![deny(deprecated_safe)] +#![deny(deprecated_safe_2024)] use std::env; diff --git a/tests/ui/rust-2024/unsafe-env-suggestion.stderr b/tests/ui/rust-2024/unsafe-env-suggestion.stderr index 7c12f4aa5ed..3aa10a3bed6 100644 --- a/tests/ui/rust-2024/unsafe-env-suggestion.stderr +++ b/tests/ui/rust-2024/unsafe-env-suggestion.stderr @@ -9,8 +9,8 @@ LL | env::set_var("FOO", "BAR"); note: the lint level is defined here --> $DIR/unsafe-env-suggestion.rs:3:9 | -LL | #![deny(deprecated_safe)] - | ^^^^^^^^^^^^^^^ +LL | #![deny(deprecated_safe_2024)] + | ^^^^^^^^^^^^^^^^^^^^ help: you can wrap the call in an `unsafe` block if you can guarantee the code is only ever called from single-threaded code | LL + // TODO: Audit that the environment access only happens in single-threaded code. |
