2016-04-20 01:27:01 +02:00
|
|
|
#![allow(unused_imports)]
|
2016-04-20 06:52:10 +02:00
|
|
|
#![allow(dead_code)]
|
2018-07-28 17:34:52 +02:00
|
|
|
#![warn(clippy::unsafe_removed_from_name)]
|
2016-04-20 01:27:01 +02:00
|
|
|
|
2018-12-09 23:26:16 +01:00
|
|
|
use std::cell::UnsafeCell as TotallySafeCell;
|
2017-02-08 14:58:07 +01:00
|
|
|
|
2016-04-20 01:27:01 +02:00
|
|
|
use std::cell::UnsafeCell as TotallySafeCellAgain;
|
2017-02-08 14:58:07 +01:00
|
|
|
|
2016-04-20 06:52:10 +02:00
|
|
|
// Shouldn't error
|
2018-12-09 23:26:16 +01:00
|
|
|
use std::cell::RefCell as ProbablyNotUnsafe;
|
2016-04-20 06:52:10 +02:00
|
|
|
use std::cell::RefCell as RefCellThatCantBeUnsafe;
|
2018-12-09 23:26:16 +01:00
|
|
|
use std::cell::UnsafeCell as SuperDangerousUnsafeCell;
|
|
|
|
use std::cell::UnsafeCell as Dangerunsafe;
|
|
|
|
use std::cell::UnsafeCell as Bombsawayunsafe;
|
2016-04-20 06:52:10 +02:00
|
|
|
|
|
|
|
mod mod_with_some_unsafe_things {
|
|
|
|
pub struct Safe {}
|
|
|
|
pub struct Unsafe {}
|
|
|
|
}
|
|
|
|
|
|
|
|
use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
|
2017-02-08 14:58:07 +01:00
|
|
|
|
2016-04-20 06:52:10 +02:00
|
|
|
// Shouldn't error
|
|
|
|
use mod_with_some_unsafe_things::Safe as IPromiseItsSafeThisTime;
|
|
|
|
use mod_with_some_unsafe_things::Unsafe as SuperUnsafeModThing;
|
|
|
|
|
2016-04-20 01:27:01 +02:00
|
|
|
fn main() {}
|