From a32498d8464e0dfa4e2cb31967a66e076da40109 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 31 Jan 2013 17:12:29 -0800 Subject: Make ~fn non-copyable, make &fn copyable, split barefn/closure types, correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719. --- src/libcore/num/cmath.rs | 3 --- src/libcore/num/f32.rs | 4 ---- src/libcore/num/f64.rs | 4 ---- src/libcore/num/float.rs | 4 ---- src/libcore/num/int-template.rs | 4 ---- src/libcore/num/uint-template.rs | 4 ---- 6 files changed, 23 deletions(-) (limited to 'src/libcore/num') diff --git a/src/libcore/num/cmath.rs b/src/libcore/num/cmath.rs index 6341481809e..c030dfc5899 100644 --- a/src/libcore/num/cmath.rs +++ b/src/libcore/num/cmath.rs @@ -9,9 +9,6 @@ // except according to those terms. #[doc(hidden)]; // FIXME #3538 -// NB: transitionary, de-mode-ing. -#[forbid(deprecated_mode)]; -#[forbid(deprecated_pattern)]; use libc::c_int; use libc::c_float; diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index 24ad5c114af..738445b5cd9 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -8,10 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// NB: transitionary, de-mode-ing. -#[forbid(deprecated_mode)]; -#[forbid(deprecated_pattern)]; - //! Operations and constants for `f32` use cmath; diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs index 126a48cf280..f09d874803c 100644 --- a/src/libcore/num/f64.rs +++ b/src/libcore/num/f64.rs @@ -8,10 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// NB: transitionary, de-mode-ing. -#[forbid(deprecated_mode)]; -#[forbid(deprecated_pattern)]; - //! Operations and constants for `f64` use cmath; diff --git a/src/libcore/num/float.rs b/src/libcore/num/float.rs index 32cda029cd1..f5ae05ebffb 100644 --- a/src/libcore/num/float.rs +++ b/src/libcore/num/float.rs @@ -8,10 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// NB: transitionary, de-mode-ing. -#[forbid(deprecated_mode)]; -#[forbid(deprecated_pattern)]; - //! Operations and constants for `float` // Even though this module exports everything defined in it, diff --git a/src/libcore/num/int-template.rs b/src/libcore/num/int-template.rs index 8b02f3a94c5..1856781b1d7 100644 --- a/src/libcore/num/int-template.rs +++ b/src/libcore/num/int-template.rs @@ -8,10 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// NB: transitionary, de-mode-ing. -#[forbid(deprecated_mode)]; -#[forbid(deprecated_pattern)]; - use T = self::inst::T; use char; diff --git a/src/libcore/num/uint-template.rs b/src/libcore/num/uint-template.rs index 82c6e017014..f8bbb35204a 100644 --- a/src/libcore/num/uint-template.rs +++ b/src/libcore/num/uint-template.rs @@ -8,10 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// NB: transitionary, de-mode-ing. -#[forbid(deprecated_mode)]; -#[forbid(deprecated_pattern)]; - use T = self::inst::T; use T_SIGNED = self::inst::T_SIGNED; -- cgit 1.4.1-3-g733a5