Skip to content

Commit 5f11d19

Browse files
committed
Reduce pub exposure.
1 parent b6d0493 commit 5f11d19

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

compiler/rustc_session/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@ fn select_debuginfo(matches: &getopts::Matches, cg: &CodegenOptions) -> DebugInf
22942294
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
22952295
}
22962296

2297-
pub(crate) fn parse_assert_incr_state(
2297+
fn parse_assert_incr_state(
22982298
handler: &EarlyErrorHandler,
22992299
opt_assertion: &Option<String>,
23002300
) -> Option<IncrementalStateAssertion> {

compiler/rustc_session/src/parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ pub struct ParseSess {
214214
pub assume_incomplete_release: bool,
215215
/// Spans passed to `proc_macro::quote_span`. Each span has a numerical
216216
/// identifier represented by its position in the vector.
217-
pub proc_macro_quoted_spans: AppendOnlyVec<Span>,
217+
proc_macro_quoted_spans: AppendOnlyVec<Span>,
218218
/// Used to generate new `AttrId`s. Every `AttrId` is unique.
219219
pub attr_id_generator: AttrIdGenerator,
220220
}

compiler/rustc_session/src/session.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ use crate::parse::{add_feature_diagnostics, ParseSess};
1010
use crate::search_paths::{PathKind, SearchPath};
1111
use crate::{filesearch, lint};
1212

13-
pub use rustc_ast::attr::MarkedAttrs;
14-
pub use rustc_ast::Attribute;
1513
use rustc_data_structures::flock;
1614
use rustc_data_structures::fx::{FxHashMap, FxIndexSet};
1715
use rustc_data_structures::jobserver::{self, Client};
@@ -48,7 +46,7 @@ use std::path::{Path, PathBuf};
4846
use std::str::FromStr;
4947
use 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

Comments
 (0)