]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #76318 - scottmcm:one-control-flow, r=ecstatic-morse
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 6 Sep 2020 23:18:05 +0000 (01:18 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Sep 2020 23:18:05 +0000 (01:18 +0200)
commitacd33e1d149d0c27c0951f5266cc621193761e05
treea04beb858685419c4c942da89f9ddcfe0dd93751
parente735247289a07c39a6269e6f53e8a85dc8d59271
parent59e37332b0d2d0c5e43bea1184ec0387fb07cc80
Rollup merge of #76318 - scottmcm:one-control-flow, r=ecstatic-morse

Use ops::ControlFlow in rustc_data_structures::graph::iterate

Since I only know about this because you mentioned it,
r? @ecstatic-morse

If we're not supposed to use new `core` things in compiler for a while then feel free to close, but it felt reasonable to merge the two types since they're the same, and it might be convenient for people to use `?` in their traversal code.

(This doesn't do the type parameter swap; NoraCodes has signed up to do that one.)
compiler/rustc_mir_build/src/lints.rs
library/core/src/iter/adapters/mod.rs
library/core/src/iter/traits/iterator.rs