@@ -10,8 +10,6 @@ use crate::parse::{add_feature_diagnostics, ParseSess};
10
10
use crate :: search_paths:: { PathKind , SearchPath } ;
11
11
use crate :: { filesearch, lint} ;
12
12
13
- pub use rustc_ast:: attr:: MarkedAttrs ;
14
- pub use rustc_ast:: Attribute ;
15
13
use rustc_data_structures:: flock;
16
14
use rustc_data_structures:: fx:: { FxHashMap , FxIndexSet } ;
17
15
use rustc_data_structures:: jobserver:: { self , Client } ;
@@ -48,7 +46,7 @@ use std::path::{Path, PathBuf};
48
46
use std:: str:: FromStr ;
49
47
use std:: sync:: { atomic:: AtomicBool , Arc } ;
50
48
51
- pub struct OptimizationFuel {
49
+ struct OptimizationFuel {
52
50
/// If `-zfuel=crate=n` is specified, initially set to `n`, otherwise `0`.
53
51
remaining : u64 ,
54
52
/// We're rejecting all further optimizations.
@@ -1682,7 +1680,7 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
1682
1680
1683
1681
/// Holds data on the current incremental compilation session, if there is one.
1684
1682
#[ derive( Debug ) ]
1685
- pub enum IncrCompSession {
1683
+ enum IncrCompSession {
1686
1684
/// This is the state the session will be in until the incr. comp. dir is
1687
1685
/// needed.
1688
1686
NotInitialized ,
@@ -1750,7 +1748,7 @@ impl EarlyErrorHandler {
1750
1748
1751
1749
#[ allow( rustc:: untranslatable_diagnostic) ]
1752
1750
#[ allow( rustc:: diagnostic_outside_of_impl) ]
1753
- pub ( crate ) fn early_struct_error (
1751
+ pub fn early_struct_error (
1754
1752
& self ,
1755
1753
msg : impl Into < DiagnosticMessage > ,
1756
1754
) -> DiagnosticBuilder < ' _ , !> {
0 commit comments