Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Update rand, correct some compiletest_rs changes due to Rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Dec 9, 2020
1 parent e112954 commit 904d0aa
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/game-loop/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct TestTunables {

// A random number generator, used to generate numbers between the above
// min/max configurations.
rng: rand::ThreadRng,
rng: rand::rngs::ThreadRng,
}

fn main() {
Expand Down
4 changes: 2 additions & 2 deletions sm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ edition = "2018"
sm_macro = { version = "1.0", path = "../sm_macro", optional = true }

[dev-dependencies]
compiletest_rs = { version = "0.3", features = [ "stable" ] }
compiletest_rs = { version = "*" }
criterion = "0.3"
rand = "0.5"
rand = "0.7"
sm_macro = { version = "1.0", path = "../sm_macro" }

[features]
Expand Down
2 changes: 1 addition & 1 deletion sm/tests/compile-fail/undefined-event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ fn main() {

sm.transition(Invalid);
//~^ ERROR cannot find value `Invalid` in this scope
//~| ERROR no method named `transition` found for type `Lock::Machine<Lock::Locked, sm::NoneEvent>` in the current scope
//~| ERROR no method named `transition` found for struct `Lock::Machine<Lock::Locked, sm::NoneEvent>` in the current scope
}
2 changes: 1 addition & 1 deletion sm/tests/compile-fail/undefined-transition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ fn main() {
let sm = Machine::new(Unlocked);

sm.transition(TurnKey);
//~^ ERROR no method named `transition` found for type `Lock::Machine<Lock::Unlocked, sm::NoneEvent>` in the current scope
//~^ ERROR no method named `transition` found for struct `Lock::Machine<Lock::Unlocked, sm::NoneEvent>` in the current scope
}
2 changes: 1 addition & 1 deletion test_suite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ sm = { path = "../sm" }
sm_macro = { path = "../sm_macro" }

[dependencies]
compiletest_rs = { version = "0.3", features = [ "stable" ] }
compiletest_rs = { version = "*" }
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ fn main() {

let sm = Machine::new(Unlocked);
sm = sm.transition(TurnKey);
//~^ ERROR no method named `transition` found for type `Lock::Machine<Lock::Unlocked, sm::NoneEvent>` in the current scope
//~^ ERROR no method named `transition` found for struct `Lock::Machine<Lock::Unlocked, sm::NoneEvent>` in the current scope
}

0 comments on commit 904d0aa

Please sign in to comment.