]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | #![allow(unused_imports)] |
2 | #![allow(dead_code)] | |
3 | #![warn(clippy::unsafe_removed_from_name)] | |
4 | ||
5 | use std::cell::UnsafeCell as TotallySafeCell; | |
6 | ||
7 | use std::cell::UnsafeCell as TotallySafeCellAgain; | |
8 | ||
9 | // Shouldn't error | |
10 | use std::cell::RefCell as ProbablyNotUnsafe; | |
11 | use std::cell::RefCell as RefCellThatCantBeUnsafe; | |
12 | use std::cell::UnsafeCell as SuperDangerousUnsafeCell; | |
13 | use std::cell::UnsafeCell as Dangerunsafe; | |
14 | use std::cell::UnsafeCell as Bombsawayunsafe; | |
15 | ||
16 | mod mod_with_some_unsafe_things { | |
17 | pub struct Safe {} | |
18 | pub struct Unsafe {} | |
19 | } | |
20 | ||
21 | use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety; | |
22 | ||
23 | // Shouldn't error | |
24 | use mod_with_some_unsafe_things::Safe as IPromiseItsSafeThisTime; | |
25 | use mod_with_some_unsafe_things::Unsafe as SuperUnsafeModThing; | |
26 | ||
27 | fn main() {} |