Skip to content

Commit bc23179

Browse files
NoraCodesscottmcm
authored andcommitted
Don't re-export std::ops::ControlFlow in the compiler.
1 parent 84daccc commit bc23179

File tree

2 files changed

+3
-4
lines changed
  • compiler
    • rustc_data_structures/src/graph/iterate
    • rustc_mir_build/src

2 files changed

+3
-4
lines changed

compiler/rustc_data_structures/src/graph/iterate/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use super::{DirectedGraph, WithNumNodes, WithStartNode, WithSuccessors};
22
use rustc_index::bit_set::BitSet;
33
use rustc_index::vec::IndexVec;
4+
use std::ops::ControlFlow;
45

56
#[cfg(test)]
67
mod tests;
@@ -86,9 +87,6 @@ where
8687
}
8788
}
8889

89-
/// Allows searches to terminate early with a value.
90-
pub use std::ops::ControlFlow;
91-
9290
/// The status of a node in the depth-first search.
9391
///
9492
/// See the documentation of `TriColorDepthFirstSearch` to see how a node's status is updated

compiler/rustc_mir_build/src/lints.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rustc_data_structures::graph::iterate::{
2-
ControlFlow, NodeStatus, TriColorDepthFirstSearch, TriColorVisitor,
2+
NodeStatus, TriColorDepthFirstSearch, TriColorVisitor,
33
};
44
use rustc_hir::intravisit::FnKind;
55
use rustc_middle::hir::map::blocks::FnLikeNode;
@@ -8,6 +8,7 @@ use rustc_middle::ty::subst::{GenericArg, InternalSubsts};
88
use rustc_middle::ty::{self, AssocItem, AssocItemContainer, Instance, TyCtxt};
99
use rustc_session::lint::builtin::UNCONDITIONAL_RECURSION;
1010
use rustc_span::Span;
11+
use std::ops::ControlFlow;
1112

1213
crate fn check<'tcx>(tcx: TyCtxt<'tcx>, body: &Body<'tcx>) {
1314
let def_id = body.source.def_id().expect_local();

0 commit comments

Comments
 (0)