Skip to content

Commit cb3d924

Browse files
committed
Bless clippy
1 parent 688c79f commit cb3d924

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

Diff for: src/tools/clippy/clippy_lints/src/deprecated_lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ declare_with_version! { RENAMED(RENAMED_VERSION): &[(&str, &str)] = &[
166166
#[clippy::version = ""]
167167
("clippy::positional_named_format_parameters", "named_arguments_used_positionally"),
168168
#[clippy::version = ""]
169-
("clippy::temporary_cstring_as_ptr", "temporary_cstring_as_ptr"),
169+
("clippy::temporary_cstring_as_ptr", "dangling_pointers_from_temporaries"),
170170
#[clippy::version = ""]
171171
("clippy::undropped_manually_drops", "undropped_manually_drops"),
172172
#[clippy::version = ""]

Diff for: src/tools/clippy/tests/ui/rename.fixed

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#![allow(enum_intrinsics_non_enums)]
5555
#![allow(non_fmt_panics)]
5656
#![allow(named_arguments_used_positionally)]
57-
#![allow(temporary_cstring_as_ptr)]
57+
#![allow(dangling_pointers_from_temporaries)]
5858
#![allow(undropped_manually_drops)]
5959
#![allow(unknown_lints)]
6060
#![allow(unused_labels)]
@@ -120,7 +120,7 @@
120120
#![warn(unexpected_cfgs)] //~ ERROR: lint `clippy::mismatched_target_os`
121121
#![warn(non_fmt_panics)] //~ ERROR: lint `clippy::panic_params`
122122
#![warn(named_arguments_used_positionally)] //~ ERROR: lint `clippy::positional_named_format_parameters`
123-
#![warn(temporary_cstring_as_ptr)] //~ ERROR: lint `clippy::temporary_cstring_as_ptr`
123+
#![warn(dangling_pointers_from_temporaries)] //~ ERROR: lint `clippy::temporary_cstring_as_ptr`
124124
#![warn(undropped_manually_drops)] //~ ERROR: lint `clippy::undropped_manually_drops`
125125
#![warn(unknown_lints)] //~ ERROR: lint `clippy::unknown_clippy_lints`
126126
#![warn(unused_labels)] //~ ERROR: lint `clippy::unused_label`

Diff for: src/tools/clippy/tests/ui/rename.stderr

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
error: lint `temporary_cstring_as_ptr` has been renamed to `dangling_pointers_from_temporaries`
2+
--> tests/ui/rename.rs:57:10
3+
|
4+
LL | #![allow(temporary_cstring_as_ptr)]
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dangling_pointers_from_temporaries`
6+
|
7+
= note: `-D renamed-and-removed-lints` implied by `-D warnings`
8+
= help: to override `-D warnings` add `#[allow(renamed_and_removed_lints)]`
9+
110
error: lint `clippy::almost_complete_letter_range` has been renamed to `clippy::almost_complete_range`
211
--> tests/ui/rename.rs:63:9
312
|
413
LL | #![warn(clippy::almost_complete_letter_range)]
514
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::almost_complete_range`
6-
|
7-
= note: `-D renamed-and-removed-lints` implied by `-D warnings`
8-
= help: to override `-D warnings` add `#[allow(renamed_and_removed_lints)]`
915

1016
error: lint `clippy::blacklisted_name` has been renamed to `clippy::disallowed_names`
1117
--> tests/ui/rename.rs:64:9
@@ -361,11 +367,11 @@ error: lint `clippy::positional_named_format_parameters` has been renamed to `na
361367
LL | #![warn(clippy::positional_named_format_parameters)]
362368
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `named_arguments_used_positionally`
363369

364-
error: lint `clippy::temporary_cstring_as_ptr` has been renamed to `temporary_cstring_as_ptr`
370+
error: lint `clippy::temporary_cstring_as_ptr` has been renamed to `dangling_pointers_from_temporaries`
365371
--> tests/ui/rename.rs:123:9
366372
|
367373
LL | #![warn(clippy::temporary_cstring_as_ptr)]
368-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `temporary_cstring_as_ptr`
374+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dangling_pointers_from_temporaries`
369375

370376
error: lint `clippy::undropped_manually_drops` has been renamed to `undropped_manually_drops`
371377
--> tests/ui/rename.rs:124:9
@@ -397,5 +403,5 @@ error: lint `clippy::reverse_range_loop` has been renamed to `clippy::reversed_e
397403
LL | #![warn(clippy::reverse_range_loop)]
398404
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::reversed_empty_ranges`
399405

400-
error: aborting due to 66 previous errors
406+
error: aborting due to 67 previous errors
401407

0 commit comments

Comments
 (0)