Skip to content

Commit b0e188e

Browse files
committedMar 21, 2018
Fn for Arc/Rc - fix build errors
1 parent 27a60b7 commit b0e188e

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
 

‎src/liballoc/arc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,8 @@ mod fn_impls {
14411441

14421442
#[cfg(test)]
14431443
mod tests {
1444+
use super::Arc;
1445+
14441446
#[test]
14451447
fn is_fn() {
14461448
use_fn(Arc::new(|x| x + 1));

‎src/liballoc/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@
125125
#![feature(exact_chunks)]
126126
#![feature(pointer_methods)]
127127
#![feature(inclusive_range_fields)]
128+
#![feature(fn_traits)]
128129

129-
#![cfg_attr(not(test), feature(fn_traits, placement_new_protocol, swap_with_slice, i128))]
130+
#![cfg_attr(not(test), feature(placement_new_protocol, swap_with_slice, i128))]
130131
#![cfg_attr(test, feature(test, box_heap))]
131132

132133
// Allow testing this library

‎src/liballoc/rc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,8 @@ mod fn_impls {
14161416

14171417
#[cfg(test)]
14181418
mod tests {
1419+
use super::Rc;
1420+
14191421
#[test]
14201422
fn is_fn() {
14211423
use_fn(Rc::new(|x| x + 1));

0 commit comments

Comments
 (0)
Please sign in to comment.