use visibility to check unused imports and delete some stmts
This commit is contained in:
parent
724ba7fe90
commit
482275b194
38 changed files with 133 additions and 55 deletions
|
@ -20,7 +20,6 @@ use std::ops::ControlFlow;
|
|||
|
||||
pub use self::infer_ctxt_ext::*;
|
||||
pub use self::type_err_ctxt_ext::*;
|
||||
pub use rustc_infer::traits::error_reporting::*;
|
||||
|
||||
// When outputting impl candidates, prefer showing those that are more similar.
|
||||
//
|
||||
|
|
|
@ -41,11 +41,6 @@ use std::ops::ControlFlow;
|
|||
|
||||
pub(crate) use self::project::{needs_normalization, BoundVarReplacer, PlaceholderReplacer};
|
||||
|
||||
pub use self::FulfillmentErrorCode::*;
|
||||
pub use self::ImplSource::*;
|
||||
pub use self::ObligationCauseCode::*;
|
||||
pub use self::SelectionError::*;
|
||||
|
||||
pub use self::coherence::{add_placeholder_note, orphan_check, overlapping_impls};
|
||||
pub use self::coherence::{OrphanCheckErr, OverlapResult};
|
||||
pub use self::engine::{ObligationCtxt, TraitEngineExt};
|
||||
|
|
|
@ -9,7 +9,7 @@ use rustc_middle::ty::{self, ImplSubject, ToPredicate, Ty, TyCtxt, TypeVisitable
|
|||
use rustc_span::Span;
|
||||
use smallvec::SmallVec;
|
||||
|
||||
pub use rustc_infer::traits::{self, util::*};
|
||||
pub use rustc_infer::traits::util::*;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// `TraitAliasExpander` iterator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue