Skip to content

Commit

Permalink
Merge pull request #37 from tbu-/pr_test_statics2
Browse files Browse the repository at this point in the history
Revert bump in the minimum supported Rust version
  • Loading branch information
alexcrichton authored Sep 12, 2018
2 parents 6338372 + 92bc00e commit 5daab1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ impl TestGenerator {
t!(gen.rust.write_all(br#"
use std::any::{Any, TypeId};
use std::mem;
use std::sync::atomic::{ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT};
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
fn main() {
Expand Down Expand Up @@ -779,8 +780,8 @@ impl TestGenerator {
}
p! { i8 i16 i32 i64 u8 u16 u32 u64 usize isize }
static FAILED: AtomicBool = AtomicBool::new(false);
static NTESTS: AtomicUsize = AtomicUsize::new(0);
static FAILED: AtomicBool = ATOMIC_BOOL_INIT;
static NTESTS: AtomicUsize = ATOMIC_USIZE_INIT;
fn same<T: Eq + Pretty>(rust: T, c: T, attr: &str) {
if rust != c {
Expand Down

0 comments on commit 5daab1d

Please sign in to comment.