@@ -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.
@@ -147,7 +145,7 @@ pub struct Session {
147
145
pub target : Target ,
148
146
pub host : Target ,
149
147
pub opts : config:: Options ,
150
- pub host_tlib_path : Lrc < SearchPath > ,
148
+ host_tlib_path : Lrc < SearchPath > ,
151
149
pub target_tlib_path : Lrc < SearchPath > ,
152
150
pub parse_sess : ParseSess ,
153
151
pub sysroot : PathBuf ,
@@ -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 ,
@@ -1716,7 +1714,7 @@ impl EarlyErrorHandler {
1716
1714
/// Swap out the underlying handler once we acquire the user's preference on error emission
1717
1715
/// format. Any errors prior to that will cause an abort and all stashed diagnostics of the
1718
1716
/// previous handler will be emitted.
1719
- pub fn abort_if_error_and_set_error_format ( & mut self , output : ErrorOutputType ) {
1717
+ pub ( crate ) fn abort_if_error_and_set_error_format ( & mut self , output : ErrorOutputType ) {
1720
1718
self . handler . abort_if_errors ( ) ;
1721
1719
1722
1720
let emitter = mk_emitter ( output) ;
@@ -1725,13 +1723,13 @@ impl EarlyErrorHandler {
1725
1723
1726
1724
#[ allow( rustc:: untranslatable_diagnostic) ]
1727
1725
#[ allow( rustc:: diagnostic_outside_of_impl) ]
1728
- pub fn early_note ( & self , msg : impl Into < DiagnosticMessage > ) {
1726
+ pub ( crate ) fn early_note ( & self , msg : impl Into < DiagnosticMessage > ) {
1729
1727
self . handler . struct_note_without_error ( msg) . emit ( )
1730
1728
}
1731
1729
1732
1730
#[ allow( rustc:: untranslatable_diagnostic) ]
1733
1731
#[ allow( rustc:: diagnostic_outside_of_impl) ]
1734
- pub fn early_help ( & self , msg : impl Into < DiagnosticMessage > ) {
1732
+ pub ( crate ) fn early_help ( & self , msg : impl Into < DiagnosticMessage > ) {
1735
1733
self . handler . struct_help ( msg) . emit ( )
1736
1734
}
1737
1735
0 commit comments