Auto merge of #75671 - nathanwhit:cstring-temp-lint, r=oli-obk
Uplift `temporary-cstring-as-ptr` lint from `clippy` into rustc The general consensus seems to be that this lint covers a common enough mistake to warrant inclusion in rustc. The diagnostic message might need some tweaking, as I'm not sure the use of second-person perspective matches the rest of rustc, but I'd like to hear others' thoughts on that. (cc #53224). r? `@oli-obk`
This commit is contained in:
commit
90e6d0d46b
15 changed files with 177 additions and 141 deletions
|
@ -127,6 +127,7 @@ symbols! {
|
|||
ArgumentV1,
|
||||
Arguments,
|
||||
C,
|
||||
CString,
|
||||
Center,
|
||||
Clone,
|
||||
Copy,
|
||||
|
@ -261,6 +262,7 @@ symbols! {
|
|||
arm_target_feature,
|
||||
array,
|
||||
arrays,
|
||||
as_ptr,
|
||||
as_str,
|
||||
asm,
|
||||
assert,
|
||||
|
@ -310,6 +312,7 @@ symbols! {
|
|||
breakpoint,
|
||||
bridge,
|
||||
bswap,
|
||||
c_str,
|
||||
c_variadic,
|
||||
call,
|
||||
call_mut,
|
||||
|
@ -397,6 +400,7 @@ symbols! {
|
|||
crate_type,
|
||||
crate_visibility_modifier,
|
||||
crt_dash_static: "crt-static",
|
||||
cstring_type,
|
||||
ctlz,
|
||||
ctlz_nonzero,
|
||||
ctpop,
|
||||
|
@ -478,6 +482,7 @@ symbols! {
|
|||
existential_type,
|
||||
exp2f32,
|
||||
exp2f64,
|
||||
expect,
|
||||
expected,
|
||||
expf32,
|
||||
expf64,
|
||||
|
@ -501,6 +506,7 @@ symbols! {
|
|||
fadd_fast,
|
||||
fdiv_fast,
|
||||
feature,
|
||||
ffi,
|
||||
ffi_const,
|
||||
ffi_pure,
|
||||
ffi_returns_twice,
|
||||
|
@ -1170,6 +1176,7 @@ symbols! {
|
|||
unused_qualifications,
|
||||
unwind,
|
||||
unwind_attributes,
|
||||
unwrap,
|
||||
unwrap_or,
|
||||
use_extern_macros,
|
||||
use_nested_groups,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue