Clarify visibility of several rustc_interface passes
This commit is contained in:
parent
d8c9dd4172
commit
391bdb3c12
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ use std::sync::{Arc, LazyLock};
|
||||||
use std::{env, fs, iter};
|
use std::{env, fs, iter};
|
||||||
use tracing::{info, instrument};
|
use tracing::{info, instrument};
|
||||||
|
|
||||||
pub fn parse<'a>(sess: &'a Session) -> Result<ast::Crate> {
|
pub(crate) fn parse<'a>(sess: &'a Session) -> Result<ast::Crate> {
|
||||||
let krate = sess
|
let krate = sess
|
||||||
.time("parse_crate", || {
|
.time("parse_crate", || {
|
||||||
let mut parser = unwrap_or_emit_fatal(match &sess.io.input {
|
let mut parser = unwrap_or_emit_fatal(match &sess.io.input {
|
||||||
|
@ -643,7 +643,7 @@ pub static DEFAULT_QUERY_PROVIDERS: LazyLock<Providers> = LazyLock::new(|| {
|
||||||
*providers
|
*providers
|
||||||
});
|
});
|
||||||
|
|
||||||
pub fn create_global_ctxt<'tcx>(
|
pub(crate) fn create_global_ctxt<'tcx>(
|
||||||
compiler: &'tcx Compiler,
|
compiler: &'tcx Compiler,
|
||||||
mut krate: rustc_ast::Crate,
|
mut krate: rustc_ast::Crate,
|
||||||
gcx_cell: &'tcx OnceLock<GlobalCtxt<'tcx>>,
|
gcx_cell: &'tcx OnceLock<GlobalCtxt<'tcx>>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue