Skip to content

Commit

Permalink
Revert bump in the minimum supported Rust version
Browse files Browse the repository at this point in the history
Being able to call `const fn` on stable is a relatively new addition.

CC rust-lang/libc#1075
  • Loading branch information
tbu- committed Sep 12, 2018
1 parent 6338372 commit 92bc00e
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 92bc00e

Please sign in to comment.