Skip to content

Commit 079ee4b

Browse files
k0kubunmatzbot
authored andcommitted
Fix rand 0.10.0 compatibility in ZJIT parcopy tests
rand 0.10.0 moved `random_range` from the `Rng` trait to `RngExt`. Update the import accordingly.
1 parent 7444cb9 commit 079ee4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/backend/parcopy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub fn sequentialize_register<T: PartialEq + Eq + Hash + Ord + std::fmt::Debug +
117117

118118
#[cfg(test)]
119119
mod tests {
120-
use rand::Rng;
120+
use rand::RngExt;
121121
use std::collections::HashMap;
122122

123123
use super::*;

0 commit comments

Comments
 (0)