Source: rust-redis
Version: 0.32.7-1
Severity: grave

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Crate redis fails to compile:

error[E0599]: no method named `random_range` found for struct `ThreadRng` in 
the current scope
   --> 
/build/sccache-0.17.0+ds/debian/cargo_registry/redis-0.32.7/src/cluster_handling/client.rs:82:41
    |
 82 |         let jittered_wait = 
rand::rng().random_range(self.min_wait_time..clamped_wait);
    |                                         ^^^^^^^^^^^^
    |
   ::: 
/build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:163:8
    |
163 |     fn random_range<T, R>(&mut self, range: R) -> T
    |        ------------ the method is available for `ThreadRng` here
    |
    = help: items from traits can only be used if the trait is in scope
help: there is a method `random` with a similar name, but with different 
arguments
   --> 
/build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random<T>(&mut self) -> T
 94 | |     where
 95 | |         StandardUniform: Distribution<T>,
    | |_________________________________________^
help: trait `RngExt` which provides `random_range` is implemented but not in 
scope; perhaps you want to import it
    |
  1 + use rand::RngExt;
    |

error[E0599]: no method named `random_range` found for struct `ThreadRng` in 
the current scope
   --> 
/build/sccache-0.17.0+ds/debian/cargo_registry/redis-0.32.7/src/cluster_handling/routing.rs:979:9
    |
979 |     rng.random_range(0..SLOT_SIZE)
    |         ^^^^^^^^^^^^
    |
   ::: 
/build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:163:8
    |
163 |     fn random_range<T, R>(&mut self, range: R) -> T
    |        ------------ the method is available for `ThreadRng` here
    |
    = help: items from traits can only be used if the trait is in scope
help: there is a method `random` with a similar name, but with different 
arguments
   --> 
/build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random<T>(&mut self) -> T
 94 | |     where
 95 | |         StandardUniform: Distribution<T>,
    | |_________________________________________^
help: trait `RngExt` which provides `random_range` is implemented but not in 
scope; perhaps you want to import it
    |
  1 + use rand::RngExt;
    |

error[E0599]: no method named `random_range` found for struct `ThreadRng` in 
the current scope
   --> 
/build/sccache-0.17.0+ds/debian/cargo_registry/redis-0.32.7/src/cluster_handling/sync_connection/mod.rs:582:25
    |
582 |                     rng.random_range(0..SLOT_SIZE),
    |                         ^^^^^^^^^^^^
    |
   ::: 
/build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:163:8
    |
163 |     fn random_range<T, R>(&mut self, range: R) -> T
    |        ------------ the method is available for `ThreadRng` here
    |
    = help: items from traits can only be used if the trait is in scope
help: there is a method `random` with a similar name, but with different 
arguments
   --> 
/build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random<T>(&mut self) -> T
 94 | |     where
 95 | |         StandardUniform: Distribution<T>,
    | |_________________________________________^
help: trait `RngExt` which provides `random_range` is implemented but not in 
scope; perhaps you want to import it
    |
 65 + use rand::RngExt;
    |

-----BEGIN PGP SIGNATURE-----

iQJABAEBCgAqFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmqC4QcMHGRyQGpvbmVz
LmRrAAoJECx8MUbBoAEhTA0QAIXOxtprc+dZNbuQ7A6OAX3za42hGpiqDjwk6jr7
LN6mDQfsGndmT3FWCtB846/+ZKutreFHiVCjGefpLMJQlNlSd/UQnxbEYFNVACgF
2dzxtkncX63BjZ2o+p1vJbJnMmUFQ925KqPQxL/2h3HTi+NFklmIQQge850xpyZd
obpeVELxAkTEoqAnhNT0jZhkRNb1fAuNgsoiEgDu1dOJXdoFtvx/9mJTMZYcEcBb
tITj9Fmfmjc17ojumjjYOFynAhIq3D98GTj/dK0wmrtQDojfHtDLoqAbywGPvuEA
wnAU3enF36yjJrHFhQKiuQenkcEV46ENxGgJrbLWZXqmog84Sk7M0u7QUYxwyEbS
f2xDuXEklr6ct8KG9BuxAf8jdG+dFaUmMsQSFSCOPlZqAVxNuiUqAI5bxrcoLYVX
oHr+H/a3f7IGgwoDvrNQ8qe9Xc8tjqHJyQ/pOtDe+TVzETxALLck3Ym+HJ4x1Glz
BEdPS9CVwOw3KotSpvqZv+9glI1KJceDkfuk20LGutl+trEngiDftB6eysU8UQl+
OEtfCifRnF0UhlUs3+8n/W16Qq4cMOwtRQhV61hzaUCJpRkl411Wb+W4i4XCnuqU
NX7NozBWCD3XbdCnNQ2Rqwprle5Dh+AWwk9StSf62kmEqxSkFBKEhM4WA6OWiQCE
V+5N
=i+Fm
-----END PGP SIGNATURE-----

Reply via email to