Rollup merge of #46287 - SimonSapin:stable-constness, r=aturon

Stabilize const-calling existing const-fns in std

Fixes #46038
This commit is contained in:
kennytm 2017-11-29 18:37:47 +08:00 committed by GitHub
commit 0e78c29bea
45 changed files with 8 additions and 164 deletions

View file

@ -13,7 +13,7 @@
//
// (Compare against compile-fail/dropck_vec_cycle_checked.rs)
#![feature(const_atomic_usize_new)]
use std::cell::Cell;
use id::Id;

View file

@ -12,7 +12,7 @@
//
// (Compare against compile-fail/dropck_arr_cycle_checked.rs)
#![feature(const_atomic_usize_new)]
use std::cell::Cell;
use id::Id;

View file

@ -23,7 +23,7 @@
// conditions above to be satisfied, meaning that if the dropck is
// sound, it should reject this code.
#![feature(const_atomic_usize_new)]
use std::cell::Cell;
use id::Id;