From a962bdb3daa45da703b8a25fd76e6eebeb97635e Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 26 Jan 2015 14:39:58 -0500 Subject: Use `#[rustc_paren_sugar]` as a more extensible way of deciding when paren sugar is legal. --- src/libcore/ops.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libcore/ops.rs') diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 55ff3eb4d06..80232764ed4 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1166,6 +1166,7 @@ impl FnOnce for F #[unstable(feature = "core", reason = "uncertain about variadic generics, input versus associated types")] #[cfg(not(stage0))] +#[rustc_paren_sugar] pub trait Fn { type Output; @@ -1178,6 +1179,7 @@ pub trait Fn { #[unstable(feature = "core", reason = "uncertain about variadic generics, input versus associated types")] #[cfg(not(stage0))] +#[rustc_paren_sugar] pub trait FnMut { type Output; @@ -1190,6 +1192,7 @@ pub trait FnMut { #[unstable(feature = "core", reason = "uncertain about variadic generics, input versus associated types")] #[cfg(not(stage0))] +#[rustc_paren_sugar] pub trait FnOnce { type Output; -- cgit 1.4.1-3-g733a5