File tree 20 files changed +47
-45
lines changed
20 files changed +47
-45
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ use crate::borrow_tracker::{
22
22
use crate :: concurrency:: data_race:: { NaReadType , NaWriteType } ;
23
23
use crate :: * ;
24
24
25
- use diagnostics:: { RetagCause , RetagInfo } ;
26
- pub use item:: { Item , Permission } ;
27
- pub use stack:: Stack ;
25
+ use self :: diagnostics:: { RetagCause , RetagInfo } ;
26
+ pub use self :: item:: { Item , Permission } ;
27
+ pub use self :: stack:: Stack ;
28
28
29
29
pub type AllocState = Stacks ;
30
30
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ mod unimap;
19
19
#[ cfg( test) ]
20
20
mod exhaustive;
21
21
22
- use perms:: Permission ;
23
- pub use tree:: Tree ;
22
+ use self :: perms:: Permission ;
23
+ pub use self :: tree:: Tree ;
24
24
25
25
pub type AllocState = Tree ;
26
26
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ enum PermissionPriv {
47
47
/// rejects: all child accesses (UB).
48
48
Disabled ,
49
49
}
50
- use PermissionPriv :: * ;
50
+ use self :: PermissionPriv :: * ;
51
51
52
52
impl PartialOrd for PermissionPriv {
53
53
/// PermissionPriv is ordered by the reflexive transitive closure of
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ pub mod thread;
7
7
mod vector_clock;
8
8
pub mod weak_memory;
9
9
10
- pub use vector_clock:: VClock ;
10
+ pub use self :: vector_clock:: VClock ;
Original file line number Diff line number Diff line change 1
1
use rustc_middle:: { mir, mir:: BinOp , ty} ;
2
2
3
3
use crate :: * ;
4
- use helpers:: check_arg_count;
4
+ use self :: helpers:: check_arg_count;
5
5
6
6
pub enum AtomicOp {
7
7
/// The `bool` indicates whether the result of the operation should be negated (`UnOp::Not`,
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ use rustc_span::{sym, Symbol};
13
13
use rustc_target:: abi:: Size ;
14
14
15
15
use crate :: * ;
16
- use atomic:: EvalContextExt as _;
17
- use helpers:: { check_arg_count, ToHost , ToSoft } ;
18
- use simd:: EvalContextExt as _;
16
+ use self :: atomic:: EvalContextExt as _;
17
+ use self :: helpers:: { check_arg_count, ToHost , ToSoft } ;
18
+ use self :: simd:: EvalContextExt as _;
19
19
20
20
impl < ' tcx > EvalContextExt < ' tcx > for crate :: MiriInterpCx < ' tcx > { }
21
21
pub trait EvalContextExt < ' tcx > : crate :: MiriInterpCxExt < ' tcx > {
Original file line number Diff line number Diff line change 51
51
clippy:: cast_lossless,
52
52
clippy:: cast_possible_truncation,
53
53
) ]
54
+ #![ cfg_attr( not( bootstrap) , feature( unqualified_local_imports) ) ]
55
+ #![ cfg_attr( not( bootstrap) , warn( unqualified_local_imports) ) ]
54
56
// Needed for rustdoc from bootstrap (with `-Znormalize-docs`).
55
57
#![ recursion_limit = "256" ]
56
58
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::ffi::{OsStr, OsString};
3
3
use rustc_data_structures:: fx:: FxHashMap ;
4
4
5
5
use crate :: * ;
6
- use shims:: { unix:: UnixEnvVars , windows:: WindowsEnvVars } ;
6
+ use self :: shims:: { unix:: UnixEnvVars , windows:: WindowsEnvVars } ;
7
7
8
8
#[ derive( Default ) ]
9
9
pub enum EnvVars < ' tcx > {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use rustc_target::{
15
15
use super :: alloc:: EvalContextExt as _;
16
16
use super :: backtrace:: EvalContextExt as _;
17
17
use crate :: * ;
18
- use helpers:: { ToHost , ToSoft } ;
18
+ use self :: helpers:: { ToHost , ToSoft } ;
19
19
20
20
/// Type of dynamic symbols (for `dlsym` et al)
21
21
#[ derive( Debug , Copy , Clone ) ]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub mod panic;
17
17
pub mod time;
18
18
pub mod tls;
19
19
20
- pub use unix:: { DirTable , EpollInterestTable , FdTable } ;
20
+ pub use self :: unix:: { DirTable , EpollInterestTable , FdTable } ;
21
21
22
22
/// What needs to be done after emulating an item (a shim or an intrinsic) is done.
23
23
pub enum EmulateItemResult {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use rustc_target::spec::abi::Abi;
17
17
use rustc_target:: spec:: PanicStrategy ;
18
18
19
19
use crate :: * ;
20
- use helpers:: check_arg_count;
20
+ use self :: helpers:: check_arg_count;
21
21
22
22
/// Holds all of the relevant data for when unwinding hits a `try` frame.
23
23
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ use crate::shims::alloc::EvalContextExt as _;
11
11
use crate :: shims:: unix:: * ;
12
12
use crate :: * ;
13
13
14
- use shims:: unix:: android:: foreign_items as android;
15
- use shims:: unix:: freebsd:: foreign_items as freebsd;
16
- use shims:: unix:: linux:: foreign_items as linux;
17
- use shims:: unix:: macos:: foreign_items as macos;
18
- use shims:: unix:: solarish:: foreign_items as solarish;
14
+ use self :: shims:: unix:: android:: foreign_items as android;
15
+ use self :: shims:: unix:: freebsd:: foreign_items as freebsd;
16
+ use self :: shims:: unix:: linux:: foreign_items as linux;
17
+ use self :: shims:: unix:: macos:: foreign_items as macos;
18
+ use self :: shims:: unix:: solarish:: foreign_items as solarish;
19
19
20
20
pub fn is_dyn_sym ( name : & str , target_os : & str ) -> bool {
21
21
match name {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use crate::shims::os_str::bytes_to_os_str;
15
15
use crate :: shims:: unix:: fd:: FileDescriptionRef ;
16
16
use crate :: shims:: unix:: * ;
17
17
use crate :: * ;
18
- use shims:: time:: system_time_to_duration;
18
+ use self :: shims:: time:: system_time_to_duration;
19
19
20
20
use self :: fd:: FlockOp ;
21
21
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ use crate::machine::SIGRTMAX;
5
5
use crate :: machine:: SIGRTMIN ;
6
6
use crate :: shims:: unix:: * ;
7
7
use crate :: * ;
8
- use shims:: unix:: linux:: epoll:: EvalContextExt as _;
9
- use shims:: unix:: linux:: eventfd:: EvalContextExt as _;
10
- use shims:: unix:: linux:: mem:: EvalContextExt as _;
11
- use shims:: unix:: linux:: sync:: futex;
8
+ use self :: shims:: unix:: linux:: epoll:: EvalContextExt as _;
9
+ use self :: shims:: unix:: linux:: eventfd:: EvalContextExt as _;
10
+ use self :: shims:: unix:: linux:: mem:: EvalContextExt as _;
11
+ use self :: shims:: unix:: linux:: sync:: futex;
12
12
13
13
pub fn is_dyn_sym ( name : & str ) -> bool {
14
14
matches ! ( name, "statx" )
Original file line number Diff line number Diff line change @@ -14,18 +14,18 @@ mod linux;
14
14
mod macos;
15
15
mod solarish;
16
16
17
- pub use env:: UnixEnvVars ;
18
- pub use fd:: { FdTable , FileDescription } ;
19
- pub use fs:: DirTable ;
20
- pub use linux:: epoll:: EpollInterestTable ;
17
+ pub use self :: env:: UnixEnvVars ;
18
+ pub use self :: fd:: { FdTable , FileDescription } ;
19
+ pub use self :: fs:: DirTable ;
20
+ pub use self :: linux:: epoll:: EpollInterestTable ;
21
21
// All the Unix-specific extension traits
22
- pub use env:: EvalContextExt as _;
23
- pub use fd:: EvalContextExt as _;
24
- pub use fs:: EvalContextExt as _;
25
- pub use mem:: EvalContextExt as _;
26
- pub use sync:: EvalContextExt as _;
27
- pub use thread:: EvalContextExt as _;
28
- pub use unnamed_socket:: EvalContextExt as _;
22
+ pub use self :: env:: EvalContextExt as _;
23
+ pub use self :: fd:: EvalContextExt as _;
24
+ pub use self :: fs:: EvalContextExt as _;
25
+ pub use self :: mem:: EvalContextExt as _;
26
+ pub use self :: sync:: EvalContextExt as _;
27
+ pub use self :: thread:: EvalContextExt as _;
28
+ pub use self :: unnamed_socket:: EvalContextExt as _;
29
29
30
30
// Make up some constants.
31
31
const UID : u32 = 1000 ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use std::io::ErrorKind;
5
5
use rustc_data_structures:: fx:: FxHashMap ;
6
6
7
7
use crate :: * ;
8
- use helpers:: windows_check_buffer_size;
8
+ use self :: helpers:: windows_check_buffer_size;
9
9
10
10
#[ derive( Default ) ]
11
11
pub struct WindowsEnvVars {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use rustc_target::spec::abi::Abi;
11
11
use crate :: shims:: os_str:: bytes_to_os_str;
12
12
use crate :: shims:: windows:: * ;
13
13
use crate :: * ;
14
- use shims:: windows:: handle:: { Handle , PseudoHandle } ;
14
+ use self :: shims:: windows:: handle:: { Handle , PseudoHandle } ;
15
15
16
16
pub fn is_dyn_sym ( name : & str ) -> bool {
17
17
// std does dynamic detection for these symbols
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ mod handle;
5
5
mod sync;
6
6
mod thread;
7
7
8
- pub use env:: WindowsEnvVars ;
8
+ pub use self :: env:: WindowsEnvVars ;
9
9
// All the Windows-specific extension traits
10
- pub use env:: EvalContextExt as _;
11
- pub use handle:: EvalContextExt as _;
12
- pub use sync:: EvalContextExt as _;
13
- pub use thread:: EvalContextExt as _;
10
+ pub use self :: env:: EvalContextExt as _;
11
+ pub use self :: handle:: EvalContextExt as _;
12
+ pub use self :: sync:: EvalContextExt as _;
13
+ pub use self :: thread:: EvalContextExt as _;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use rustc_middle::ty::layout::LayoutOf;
2
2
use rustc_target:: spec:: abi:: Abi ;
3
3
4
4
use crate :: * ;
5
- use shims:: windows:: handle:: { EvalContextExt as _, Handle , PseudoHandle } ;
5
+ use self :: shims:: windows:: handle:: { EvalContextExt as _, Handle , PseudoHandle } ;
6
6
7
7
impl < ' tcx > EvalContextExt < ' tcx > for crate :: MiriInterpCx < ' tcx > { }
8
8
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use rustc_target::abi::Size;
9
9
use rustc_target:: spec:: abi:: Abi ;
10
10
11
11
use crate :: * ;
12
- use helpers:: bool_to_simd_element;
12
+ use self :: helpers:: bool_to_simd_element;
13
13
14
14
mod aesni;
15
15
mod avx;
You can’t perform that action at this time.
0 commit comments