Reduce pub
exposure.
This commit is contained in:
parent
b6d0493388
commit
5f11d19be5
3 changed files with 5 additions and 7 deletions
|
@ -2294,7 +2294,7 @@ fn select_debuginfo(matches: &getopts::Matches, cg: &CodegenOptions) -> DebugInf
|
||||||
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
|
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn parse_assert_incr_state(
|
fn parse_assert_incr_state(
|
||||||
handler: &EarlyErrorHandler,
|
handler: &EarlyErrorHandler,
|
||||||
opt_assertion: &Option<String>,
|
opt_assertion: &Option<String>,
|
||||||
) -> Option<IncrementalStateAssertion> {
|
) -> Option<IncrementalStateAssertion> {
|
||||||
|
|
|
@ -214,7 +214,7 @@ pub struct ParseSess {
|
||||||
pub assume_incomplete_release: bool,
|
pub assume_incomplete_release: bool,
|
||||||
/// Spans passed to `proc_macro::quote_span`. Each span has a numerical
|
/// Spans passed to `proc_macro::quote_span`. Each span has a numerical
|
||||||
/// identifier represented by its position in the vector.
|
/// identifier represented by its position in the vector.
|
||||||
pub proc_macro_quoted_spans: AppendOnlyVec<Span>,
|
proc_macro_quoted_spans: AppendOnlyVec<Span>,
|
||||||
/// Used to generate new `AttrId`s. Every `AttrId` is unique.
|
/// Used to generate new `AttrId`s. Every `AttrId` is unique.
|
||||||
pub attr_id_generator: AttrIdGenerator,
|
pub attr_id_generator: AttrIdGenerator,
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,6 @@ use crate::parse::{add_feature_diagnostics, ParseSess};
|
||||||
use crate::search_paths::{PathKind, SearchPath};
|
use crate::search_paths::{PathKind, SearchPath};
|
||||||
use crate::{filesearch, lint};
|
use crate::{filesearch, lint};
|
||||||
|
|
||||||
pub use rustc_ast::attr::MarkedAttrs;
|
|
||||||
pub use rustc_ast::Attribute;
|
|
||||||
use rustc_data_structures::flock;
|
use rustc_data_structures::flock;
|
||||||
use rustc_data_structures::fx::{FxHashMap, FxIndexSet};
|
use rustc_data_structures::fx::{FxHashMap, FxIndexSet};
|
||||||
use rustc_data_structures::jobserver::{self, Client};
|
use rustc_data_structures::jobserver::{self, Client};
|
||||||
|
@ -48,7 +46,7 @@ use std::path::{Path, PathBuf};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::sync::{atomic::AtomicBool, Arc};
|
use std::sync::{atomic::AtomicBool, Arc};
|
||||||
|
|
||||||
pub struct OptimizationFuel {
|
struct OptimizationFuel {
|
||||||
/// If `-zfuel=crate=n` is specified, initially set to `n`, otherwise `0`.
|
/// If `-zfuel=crate=n` is specified, initially set to `n`, otherwise `0`.
|
||||||
remaining: u64,
|
remaining: u64,
|
||||||
/// We're rejecting all further optimizations.
|
/// We're rejecting all further optimizations.
|
||||||
|
@ -1682,7 +1680,7 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
|
||||||
|
|
||||||
/// Holds data on the current incremental compilation session, if there is one.
|
/// Holds data on the current incremental compilation session, if there is one.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum IncrCompSession {
|
enum IncrCompSession {
|
||||||
/// This is the state the session will be in until the incr. comp. dir is
|
/// This is the state the session will be in until the incr. comp. dir is
|
||||||
/// needed.
|
/// needed.
|
||||||
NotInitialized,
|
NotInitialized,
|
||||||
|
@ -1750,7 +1748,7 @@ impl EarlyErrorHandler {
|
||||||
|
|
||||||
#[allow(rustc::untranslatable_diagnostic)]
|
#[allow(rustc::untranslatable_diagnostic)]
|
||||||
#[allow(rustc::diagnostic_outside_of_impl)]
|
#[allow(rustc::diagnostic_outside_of_impl)]
|
||||||
pub(crate) fn early_struct_error(
|
pub fn early_struct_error(
|
||||||
&self,
|
&self,
|
||||||
msg: impl Into<DiagnosticMessage>,
|
msg: impl Into<DiagnosticMessage>,
|
||||||
) -> DiagnosticBuilder<'_, !> {
|
) -> DiagnosticBuilder<'_, !> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue