summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/unsafe_removed_from_name.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/src/docs/unsafe_removed_from_name.txt')
-rw-r--r--src/tools/clippy/src/docs/unsafe_removed_from_name.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/clippy/src/docs/unsafe_removed_from_name.txt b/src/tools/clippy/src/docs/unsafe_removed_from_name.txt
new file mode 100644
index 000000000..6f55c1815
--- /dev/null
+++ b/src/tools/clippy/src/docs/unsafe_removed_from_name.txt
@@ -0,0 +1,15 @@
+### What it does
+Checks for imports that remove "unsafe" from an item's
+name.
+
+### Why is this bad?
+Renaming makes it less clear which traits and
+structures are unsafe.
+
+### Example
+```
+use std::cell::{UnsafeCell as TotallySafeCell};
+
+extern crate crossbeam;
+use crossbeam::{spawn_unsafe as spawn};
+``` \ No newline at end of file