Repository navigation
chore(deps): update rust crate num-prime to 0.7.0 - #15263
renovate[bot] wants to merge 1 commit into
Conversation
Merging this PR will improve performance by 52.07%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | file_tz_abbreviations |
35.4 ms | 18.8 ms | +87.73% |
| ⚡ | file_custom_format |
30 ms | 17.3 ms | +73.37% |
| ⚡ | file_iso_dates |
31.5 ms | 19 ms | +66.19% |
| ⚡ | file_localized_names |
41.9 ms | 29.4 ms | +42.75% |
| ⚡ |
complex_relative_date |
292.4 µs | 277.7 µs | +5.31% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing renovate/num-prime-0.x (d23d393) with main (99e8fbe)2
Footnotes
-
406 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(edea82f) during the generation of this report, so 99e8fbe was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
|
error[E0277]: the trait bound `for<'r, 'r> &'r BigUint: ModularUnaryOps<&'r BigUint>` is not satisfied
--> /home/tester/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-prime-0.7.0/src/rand.rs:190:25
|
190 | if is_prime(&t, config).probably() {
| -------- ^^ the trait `for<'r, 'r> ModularUnaryOps<&'r BigUint>` is not implemented for `&'r BigUint`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `ModularUnaryOps<Modulus>`:
`&Mint<T, R>` implements `ModularUnaryOps<&Mint<T, R>>`
`&num_bigint::biguint::BigUint` implements `ModularUnaryOps<&num_bigint::biguint::BigUint>`
`&u128` implements `ModularUnaryOps<&u128>`
`&u16` implements `ModularUnaryOps<&u16>`
`&u32` implements `ModularUnaryOps<&u32>`
`&u64` implements `ModularUnaryOps<&u64>`
`&u8` implements `ModularUnaryOps<&u8>`
`&usize` implements `ModularUnaryOps<&usize>`
and 8 others
= note: there are multiple different versions of crate `num_bigint` in the dependency graph
= help: you can use `cargo tree` to explore your dependency tree
note: required for `&'r BigUint` to implement `for<'r> PrimalityRefBase<BigUint>`
--> /home/tester/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-prime-0.7.0/src/primality.rs:381:15
|
381 | impl<T, Base> PrimalityRefBase<Base> for T where
| ^^^^^^^^^^^^^^^^^^^^^^ ^
...
384 | + for<'r> ModularUnaryOps<&'r Base, Output = Base>
| ------------------------------------------------ unsatisfied trait bound introduced here
note: required by a bound in `is_prime`
--> /home/tester/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-prime-0.7.0/src/nt_funcs.rs:607:20
|
605 | pub fn is_prime<T: PrimalityBase>(target: &T, config: Option<PrimalityTestConfig>) -> Primality
| -------- required by a bound in this function
606 | where
607 | for<'r> &'r T: PrimalityRefBase<T>,
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `is_prime` |
d23d393 to
b60c8fb
Compare
|
@sylvestre |
This PR contains the following updates:
0.6.0→0.7.0Release Notes
uutils/num-prime (num-prime)
v0.7.0Compare Source
What's Changed
# Dependencies
New Contributors
Full Changelog: uutils/num-prime@v0.6.1...v0.7.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.