Remove crate
visibility usage in compiler
This commit is contained in:
parent
536020c5f9
commit
49c82f31a8
186 changed files with 865 additions and 800 deletions
|
@ -17,7 +17,7 @@ use crate::MirPass;
|
|||
use std::iter;
|
||||
use std::ops::{Range, RangeFrom};
|
||||
|
||||
crate mod cycle;
|
||||
pub(crate) mod cycle;
|
||||
|
||||
const INSTR_COST: usize = 5;
|
||||
const CALL_PENALTY: usize = 25;
|
||||
|
|
|
@ -9,7 +9,7 @@ use rustc_session::Limit;
|
|||
// FIXME: check whether it is cheaper to precompute the entire call graph instead of invoking
|
||||
// this query ridiculously often.
|
||||
#[instrument(level = "debug", skip(tcx, root, target))]
|
||||
crate fn mir_callgraph_reachable<'tcx>(
|
||||
pub(crate) fn mir_callgraph_reachable<'tcx>(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
(root, target): (ty::Instance<'tcx>, LocalDefId),
|
||||
) -> bool {
|
||||
|
@ -136,7 +136,7 @@ crate fn mir_callgraph_reachable<'tcx>(
|
|||
)
|
||||
}
|
||||
|
||||
crate fn mir_inliner_callees<'tcx>(
|
||||
pub(crate) fn mir_inliner_callees<'tcx>(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
instance: ty::InstanceDef<'tcx>,
|
||||
) -> &'tcx [(DefId, SubstsRef<'tcx>)] {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#![allow(rustc::potential_query_instability)]
|
||||
#![feature(box_patterns)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(let_chains)]
|
||||
#![feature(let_else)]
|
||||
#![feature(map_try_insert)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue