@@ -10,8 +10,6 @@ use crate::parse::{add_feature_diagnostics, ParseSess};
1010use crate :: search_paths:: { PathKind , SearchPath } ;
1111use crate :: { filesearch, lint} ;
1212
13- pub use rustc_ast:: attr:: MarkedAttrs ;
14- pub use rustc_ast:: Attribute ;
1513use rustc_data_structures:: flock;
1614use rustc_data_structures:: fx:: { FxHashMap , FxIndexSet } ;
1715use rustc_data_structures:: jobserver:: { self , Client } ;
@@ -48,7 +46,7 @@ use std::path::{Path, PathBuf};
4846use std:: str:: FromStr ;
4947use std:: sync:: { atomic:: AtomicBool , Arc } ;
5048
51- pub struct OptimizationFuel {
49+ struct OptimizationFuel {
5250 /// If `-zfuel=crate=n` is specified, initially set to `n`, otherwise `0`.
5351 remaining : u64 ,
5452 /// We're rejecting all further optimizations.
@@ -1682,7 +1680,7 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
16821680
16831681/// Holds data on the current incremental compilation session, if there is one.
16841682#[ derive( Debug ) ]
1685- pub enum IncrCompSession {
1683+ enum IncrCompSession {
16861684 /// This is the state the session will be in until the incr. comp. dir is
16871685 /// needed.
16881686 NotInitialized ,
@@ -1750,7 +1748,7 @@ impl EarlyErrorHandler {
17501748
17511749 #[ allow( rustc:: untranslatable_diagnostic) ]
17521750 #[ allow( rustc:: diagnostic_outside_of_impl) ]
1753- pub ( crate ) fn early_struct_error (
1751+ pub fn early_struct_error (
17541752 & self ,
17551753 msg : impl Into < DiagnosticMessage > ,
17561754 ) -> DiagnosticBuilder < ' _ , !> {
0 commit comments