diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-28 09:39:59 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-09 08:48:09 +1000 |
| commit | 6af470e360b775a9079bd0e6634488d7a1936290 (patch) | |
| tree | 8c3ada2805a425afa8f6a8aed6663665ce995098 /compiler/rustc_mir_transform/src/jump_threading.rs | |
| parent | adf8d168af9334a8bf940824fcf4207d01e05ae5 (diff) | |
| download | rust-6af470e360b775a9079bd0e6634488d7a1936290.tar.gz rust-6af470e360b775a9079bd0e6634488d7a1936290.zip | |
Reduce visibilities, and add `warn(unreachable_pub)`.
Lots of unnecessary `pub`s in this crate. Most are downgraded to `pub(super)`, though some don't need any visibility.
Diffstat (limited to 'compiler/rustc_mir_transform/src/jump_threading.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/jump_threading.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/jump_threading.rs b/compiler/rustc_mir_transform/src/jump_threading.rs index 02dd56e1b4f..e950c2cb72a 100644 --- a/compiler/rustc_mir_transform/src/jump_threading.rs +++ b/compiler/rustc_mir_transform/src/jump_threading.rs @@ -55,7 +55,7 @@ use tracing::{debug, instrument, trace}; use crate::cost_checker::CostChecker; -pub struct JumpThreading; +pub(super) struct JumpThreading; const MAX_BACKTRACK: usize = 5; const MAX_COST: usize = 100; |
