about summary refs log tree commit diff
path: root/clippy_utils
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2021-07-14 23:09:24 +0200
committerxFrednet <xFrednet@gmail.com>2021-07-14 23:34:19 +0200
commit6ce6b29527f05e2b0fa09009053d5095f4d38aa1 (patch)
tree9acdb573624f3072b49318707cb47b55382842ad /clippy_utils
parent6030428fd22912afeeaecfcc0220e979c2ffeb0a (diff)
downloadrust-6ce6b29527f05e2b0fa09009053d5095f4d38aa1.tar.gz
rust-6ce6b29527f05e2b0fa09009053d5095f4d38aa1.zip
Use diagnostic items for `intrinsics::transmute`, `TryInto`
Diffstat (limited to 'clippy_utils')
-rw-r--r--clippy_utils/src/paths.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/paths.rs b/clippy_utils/src/paths.rs
index e9e371e3e3e..5ef7b459667 100644
--- a/clippy_utils/src/paths.rs
+++ b/clippy_utils/src/paths.rs
@@ -145,6 +145,7 @@ pub const REGEX_BYTES_NEW: [&str; 4] = ["regex", "re_bytes", "Regex", "new"];
 pub const REGEX_BYTES_SET_NEW: [&str; 5] = ["regex", "re_set", "bytes", "RegexSet", "new"];
 pub const REGEX_NEW: [&str; 4] = ["regex", "re_unicode", "Regex", "new"];
 pub const REGEX_SET_NEW: [&str; 5] = ["regex", "re_set", "unicode", "RegexSet", "new"];
+/// Preferably use the diagnostic item `sym::result_type` where possible
 pub const RESULT: [&str; 3] = ["core", "result", "Result"];
 pub const RESULT_ERR: [&str; 4] = ["core", "result", "Result", "Err"];
 pub const RESULT_OK: [&str; 4] = ["core", "result", "Result", "Ok"];
@@ -180,9 +181,8 @@ pub const SYM_MODULE: [&str; 3] = ["rustc_span", "symbol", "sym"];
 pub const SYNTAX_CONTEXT: [&str; 3] = ["rustc_span", "hygiene", "SyntaxContext"];
 pub const TO_OWNED_METHOD: [&str; 4] = ["alloc", "borrow", "ToOwned", "to_owned"];
 pub const TO_STRING_METHOD: [&str; 4] = ["alloc", "string", "ToString", "to_string"];
-pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"];
 pub const TRY_FROM: [&str; 4] = ["core", "convert", "TryFrom", "try_from"];
-pub const TRY_INTO_TRAIT: [&str; 3] = ["core", "convert", "TryInto"];
+
 pub const VEC: [&str; 3] = ["alloc", "vec", "Vec"];
 pub const VEC_AS_MUT_SLICE: [&str; 4] = ["alloc", "vec", "Vec", "as_mut_slice"];
 pub const VEC_AS_SLICE: [&str; 4] = ["alloc", "vec", "Vec", "as_slice"];