about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-06-22 08:48:56 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-06-22 15:44:36 +0000
commit391bdb3c12bf7739e58a9877b42ea05beb7331f3 (patch)
tree21533c8f51411da7bc24c40d68aab888621d8bd4 /compiler/rustc_interface/src
parentd8c9dd4172ce23e8e8bfbdc8323af908745ed16e (diff)
downloadrust-391bdb3c12bf7739e58a9877b42ea05beb7331f3.tar.gz
rust-391bdb3c12bf7739e58a9877b42ea05beb7331f3.zip
Clarify visibility of several rustc_interface passes
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index dbf954b8f43..ef0138b4ef1 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -44,7 +44,7 @@ use std::sync::{Arc, LazyLock};
 use std::{env, fs, iter};
 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
         .time("parse_crate", || {
             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
 });
 
-pub fn create_global_ctxt<'tcx>(
+pub(crate) fn create_global_ctxt<'tcx>(
     compiler: &'tcx Compiler,
     mut krate: rustc_ast::Crate,
     gcx_cell: &'tcx OnceLock<GlobalCtxt<'tcx>>,