@@ -13,7 +13,7 @@ use rustc_middle::ty::layout::{HasTyCtxt, LayoutOf};
13
13
use rustc_middle:: { bug, span_bug} ;
14
14
use tracing:: debug;
15
15
16
- pub fn non_ssa_locals < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > (
16
+ pub ( crate ) fn non_ssa_locals < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > (
17
17
fx : & FunctionCx < ' a , ' tcx , Bx > ,
18
18
) -> BitSet < mir:: Local > {
19
19
let mir = fx. mir ;
@@ -251,14 +251,14 @@ impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
251
251
}
252
252
253
253
#[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
254
- pub enum CleanupKind {
254
+ pub ( crate ) enum CleanupKind {
255
255
NotCleanup ,
256
256
Funclet ,
257
257
Internal { funclet : mir:: BasicBlock } ,
258
258
}
259
259
260
260
impl CleanupKind {
261
- pub fn funclet_bb ( self , for_bb : mir:: BasicBlock ) -> Option < mir:: BasicBlock > {
261
+ pub ( crate ) fn funclet_bb ( self , for_bb : mir:: BasicBlock ) -> Option < mir:: BasicBlock > {
262
262
match self {
263
263
CleanupKind :: NotCleanup => None ,
264
264
CleanupKind :: Funclet => Some ( for_bb) ,
@@ -270,7 +270,7 @@ impl CleanupKind {
270
270
/// MSVC requires unwinding code to be split to a tree of *funclets*, where each funclet can only
271
271
/// branch to itself or to its parent. Luckily, the code we generates matches this pattern.
272
272
/// Recover that structure in an analyze pass.
273
- pub fn cleanup_kinds ( mir : & mir:: Body < ' _ > ) -> IndexVec < mir:: BasicBlock , CleanupKind > {
273
+ pub ( crate ) fn cleanup_kinds ( mir : & mir:: Body < ' _ > ) -> IndexVec < mir:: BasicBlock , CleanupKind > {
274
274
fn discover_masters < ' tcx > (
275
275
result : & mut IndexSlice < mir:: BasicBlock , CleanupKind > ,
276
276
mir : & mir:: Body < ' tcx > ,
0 commit comments