diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-06 14:25:44 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-08 08:41:43 +1100 |
| commit | 9212e31c92aba29fac1c1e05a258abe36dd0afee (patch) | |
| tree | 09152c971d35e3689ae6aa3007c2492eca4f0c84 /compiler/rustc_data_structures/src/sync | |
| parent | beba32cebb4fb2ef8f02c4fc898a9d31f1b03c61 (diff) | |
| download | rust-9212e31c92aba29fac1c1e05a258abe36dd0afee.tar.gz rust-9212e31c92aba29fac1c1e05a258abe36dd0afee.zip | |
Add `unreachable_pub` to the default lints for `compiler/` crates.
And fix the new errors in the handful of crates that didn't have a `#![warn(unreachable_pub)]`.
Diffstat (limited to 'compiler/rustc_data_structures/src/sync')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync/parallel.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sync/parallel.rs b/compiler/rustc_data_structures/src/sync/parallel.rs index 1ba631b8623..8ef8a3f3585 100644 --- a/compiler/rustc_data_structures/src/sync/parallel.rs +++ b/compiler/rustc_data_structures/src/sync/parallel.rs @@ -46,7 +46,7 @@ pub fn parallel_guard<R>(f: impl FnOnce(&ParallelGuard) -> R) -> R { ret } -pub fn serial_join<A, B, RA, RB>(oper_a: A, oper_b: B) -> (RA, RB) +fn serial_join<A, B, RA, RB>(oper_a: A, oper_b: B) -> (RA, RB) where A: FnOnce() -> RA, B: FnOnce() -> RB, |
