about summary refs log tree commit diff
path: root/clippy_utils/src/sym.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-06-03 19:44:09 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-06-03 20:50:40 +0200
commit2a5a2fae2c253903074e8a55f9be9c8eb5a29136 (patch)
treea7a4112e9758027e3d6bfdfd88e96abc8d340453 /clippy_utils/src/sym.rs
parenta4debd23453c05ab0fc278ed4e544458bac1985f (diff)
Use interned strings when possible, for efficiency purposes
Also, a number of unnecessary `.as_str()` calls have been removed for
clarity.
Diffstat (limited to 'clippy_utils/src/sym.rs')
-rw-r--r--clippy_utils/src/sym.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/clippy_utils/src/sym.rs b/clippy_utils/src/sym.rs
index 67e5145033e..a544954931b 100644
--- a/clippy_utils/src/sym.rs
+++ b/clippy_utils/src/sym.rs
@@ -84,6 +84,7 @@ generate! {
     as_deref,
     as_deref_mut,
     as_mut,
+    as_path,
     assert_failed,
     author,
     borrow,
@@ -121,6 +122,8 @@ generate! {
     copy_to,
     copy_to_nonoverlapping,
     count_ones,
+    create,
+    create_new,
     cycle,
     cyclomatic_complexity,
     de,
@@ -256,9 +259,12 @@ generate! {
     powi,
     product,
     push,
+    read,
+    read_exact,
     read_line,
     read_to_end,
     read_to_string,
+    read_unaligned,
     redundant_pub_crate,
     regex,
     rem_euclid,
@@ -338,8 +344,11 @@ generate! {
     to_uppercase,
     tokio,
     trim,
+    trim_end,
     trim_end_matches,
+    trim_start,
     trim_start_matches,
+    truncate,
     unreachable_pub,
     unsafe_removed_from_name,
     unused,
@@ -354,12 +363,15 @@ generate! {
     unwrap_unchecked,
     unzip,
     utils,
+    visit_str,
+    visit_string,
     wake,
     warnings,
     wildcard_imports,
     with_capacity,
     wrapping_offset,
     write,
+    write_unaligned,
     writeln,
     zip,
 }