Skip to content

Commit 1eb51e7

Browse files
committed
fix unqualified_local_imports in rustc_const_eval
1 parent 4c43757 commit 1eb51e7

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

compiler/rustc_const_eval/src/const_eval/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ mod fn_queries;
1616
mod machine;
1717
mod valtrees;
1818

19-
pub use dummy_machine::*;
20-
pub use error::*;
21-
pub use eval_queries::*;
22-
pub use fn_queries::*;
23-
pub use machine::*;
24-
pub(crate) use valtrees::{eval_to_valtree, valtree_to_const_value};
19+
pub use self::dummy_machine::*;
20+
pub use self::error::*;
21+
pub use self::eval_queries::*;
22+
pub use self::fn_queries::*;
23+
pub use self::machine::*;
24+
pub(crate) use self::valtrees::{eval_to_valtree, valtree_to_const_value};
2525

2626
// We forbid type-level constants that contain more than `VALTREE_MAX_NODES` nodes.
2727
const VALTREE_MAX_NODES: usize = 100000;

compiler/rustc_const_eval/src/interpret/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ mod util;
1919
mod validity;
2020
mod visitor;
2121

22-
use eval_context::{from_known_layout, mir_assign_valid_types};
2322
#[doc(no_inline)]
2423
pub use rustc_middle::mir::interpret::*; // have all the `interpret` symbols in one place: here
2524

2625
pub use self::call::FnArg;
2726
pub use self::eval_context::{InterpCx, format_interp_error};
27+
use self::eval_context::{from_known_layout, mir_assign_valid_types};
2828
pub use self::intern::{
2929
HasStaticRootDefId, InternKind, InternResult, intern_const_alloc_for_constprop,
3030
intern_const_alloc_recursive,

compiler/rustc_const_eval/src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
33
#![allow(rustc::diagnostic_outside_of_impl)]
4+
#![cfg_attr(not(bootstrap), feature(unqualified_local_imports))]
5+
#![cfg_attr(not(bootstrap), warn(unqualified_local_imports))]
46
#![doc(rust_logo)]
57
#![feature(assert_matches)]
68
#![feature(box_patterns)]
@@ -25,10 +27,11 @@ pub mod util;
2527

2628
use std::sync::atomic::AtomicBool;
2729

28-
pub use errors::ReportErrorExt;
2930
use rustc_middle::ty;
3031
use rustc_middle::util::Providers;
3132

33+
pub use self::errors::ReportErrorExt;
34+
3235
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
3336

3437
pub fn provide(providers: &mut Providers) {

0 commit comments

Comments
 (0)