add manual_dangling_ptr lint (#14107)
close #2177 changelog: [`manual_dangling_ptr`]: new lint
This commit is contained in:
commit
b46b311ee7
14 changed files with 283 additions and 11 deletions
|
|
@ -24,7 +24,7 @@ macro_rules! msrv_aliases {
|
|||
msrv_aliases! {
|
||||
1,87,0 { OS_STR_DISPLAY, INT_MIDPOINT }
|
||||
1,85,0 { UINT_FLOAT_MIDPOINT }
|
||||
1,84,0 { CONST_OPTION_AS_SLICE }
|
||||
1,84,0 { CONST_OPTION_AS_SLICE, MANUAL_DANGLING_PTR }
|
||||
1,83,0 { CONST_EXTERN_FN, CONST_FLOAT_BITS_CONV, CONST_FLOAT_CLASSIFY, CONST_MUT_REFS, CONST_UNWRAP }
|
||||
1,82,0 { IS_NONE_OR, REPEAT_N, RAW_REF_OP }
|
||||
1,81,0 { LINT_REASONS_STABILIZATION, ERROR_IN_CORE, EXPLICIT_SELF_TYPE_ELISION }
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ pub const SYNTAX_CONTEXT: [&str; 3] = ["rustc_span", "hygiene", "SyntaxContext"]
|
|||
pub const CHAR_IS_ASCII: [&str; 5] = ["core", "char", "methods", "<impl char>", "is_ascii"];
|
||||
pub const IO_ERROR_NEW: [&str; 5] = ["std", "io", "error", "Error", "new"];
|
||||
pub const IO_ERRORKIND_OTHER: [&str; 5] = ["std", "io", "error", "ErrorKind", "Other"];
|
||||
pub const ALIGN_OF: [&str; 3] = ["core", "mem", "align_of"];
|
||||
|
||||
// Paths in clippy itself
|
||||
pub const MSRV_STACK: [&str; 3] = ["clippy_utils", "msrvs", "MsrvStack"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue