Upgrade Rust to 1.52.0 (#17096)
* Upgrade Rust to 1.52.0 update nightly_version to newly pushed docker image fix clippy lint errors 1.52 comes with grcov 0.8.0, include this version to script * upgrade to Rust 1.52.1 * disabling Serum from downstream projects until it is upgraded to Rust 1.52.1
This commit is contained in:
@@ -883,7 +883,7 @@ pub mod tests {
|
||||
let executable_bool: &bool = &account.account_meta.executable;
|
||||
// Depending on use, *executable_bool can be truthy or falsy due to direct memory manipulation
|
||||
// assert_eq! thinks *executable_bool is equal to false but the if condition thinks it's not, contradictorily.
|
||||
assert_eq!(*executable_bool, false);
|
||||
assert!(!*executable_bool);
|
||||
const FALSE: bool = false; // keep clippy happy
|
||||
if *executable_bool == FALSE {
|
||||
panic!("This didn't occur if this test passed.");
|
||||
@@ -894,7 +894,7 @@ pub mod tests {
|
||||
// we can NOT observe crafted value by value
|
||||
{
|
||||
let executable_bool: bool = account.account_meta.executable;
|
||||
assert_eq!(executable_bool, false);
|
||||
assert!(!executable_bool);
|
||||
assert_eq!(account.get_executable_byte(), 0); // Wow, not crafted_executable!
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user