Skip to content

Commit 8397217

Browse files
committed
rollup merge of rust-lang#21760: brson/snaps
2 parents eb3a060 + 03b9995 commit 8397217

File tree

3 files changed

+9
-62
lines changed

3 files changed

+9
-62
lines changed

src/libcore/ops.rs

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,55 +1134,6 @@ impl<'a, T: ?Sized> DerefMut for &'a mut T {
11341134
#[lang="fn"]
11351135
#[unstable(feature = "core",
11361136
reason = "uncertain about variadic generics, input versus associated types")]
1137-
#[cfg(stage0)]
1138-
pub trait Fn<Args,Output> {
1139-
/// This is called when the call operator is used.
1140-
extern "rust-call" fn call(&self, args: Args) -> Output;
1141-
}
1142-
1143-
/// A version of the call operator that takes a mutable receiver.
1144-
#[lang="fn_mut"]
1145-
#[unstable(feature = "core",
1146-
reason = "uncertain about variadic generics, input versus associated types")]
1147-
#[cfg(stage0)]
1148-
pub trait FnMut<Args,Output> {
1149-
/// This is called when the call operator is used.
1150-
extern "rust-call" fn call_mut(&mut self, args: Args) -> Output;
1151-
}
1152-
1153-
/// A version of the call operator that takes a by-value receiver.
1154-
#[lang="fn_once"]
1155-
#[unstable(feature = "core",
1156-
reason = "uncertain about variadic generics, input versus associated types")]
1157-
#[cfg(stage0)]
1158-
pub trait FnOnce<Args,Output> {
1159-
/// This is called when the call operator is used.
1160-
extern "rust-call" fn call_once(self, args: Args) -> Output;
1161-
}
1162-
1163-
#[cfg(stage0)]
1164-
impl<F: ?Sized, A, R> FnMut<A, R> for F
1165-
where F : Fn<A, R>
1166-
{
1167-
extern "rust-call" fn call_mut(&mut self, args: A) -> R {
1168-
self.call(args)
1169-
}
1170-
}
1171-
1172-
#[cfg(stage0)]
1173-
impl<F,A,R> FnOnce<A,R> for F
1174-
where F : FnMut<A,R>
1175-
{
1176-
extern "rust-call" fn call_once(mut self, args: A) -> R {
1177-
self.call_mut(args)
1178-
}
1179-
}
1180-
1181-
/// A version of the call operator that takes an immutable receiver.
1182-
#[lang="fn"]
1183-
#[unstable(feature = "core",
1184-
reason = "uncertain about variadic generics, input versus associated types")]
1185-
#[cfg(not(stage0))]
11861137
pub trait Fn<Args> {
11871138
type Output;
11881139

@@ -1194,7 +1145,6 @@ pub trait Fn<Args> {
11941145
#[lang="fn_mut"]
11951146
#[unstable(feature = "core",
11961147
reason = "uncertain about variadic generics, input versus associated types")]
1197-
#[cfg(not(stage0))]
11981148
pub trait FnMut<Args> {
11991149
type Output;
12001150

@@ -1206,15 +1156,13 @@ pub trait FnMut<Args> {
12061156
#[lang="fn_once"]
12071157
#[unstable(feature = "core",
12081158
reason = "uncertain about variadic generics, input versus associated types")]
1209-
#[cfg(not(stage0))]
12101159
pub trait FnOnce<Args> {
12111160
type Output;
12121161

12131162
/// This is called when the call operator is used.
12141163
extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
12151164
}
12161165

1217-
#[cfg(not(stage0))]
12181166
impl<F: ?Sized, A> FnMut<A> for F
12191167
where F : Fn<A>
12201168
{
@@ -1225,7 +1173,6 @@ impl<F: ?Sized, A> FnMut<A> for F
12251173
}
12261174
}
12271175

1228-
#[cfg(not(stage0))]
12291176
impl<F,A> FnOnce<A> for F
12301177
where F : FnMut<A>
12311178
{

src/libcore/str/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,6 @@ delegate_iter!{exact u8 : Bytes<'a>}
486486
#[derive(Copy, Clone)]
487487
struct BytesDeref;
488488

489-
#[cfg(stage0)]
490-
impl<'a> Fn(&'a u8) -> u8 for BytesDeref {
491-
#[inline]
492-
extern "rust-call" fn call(&self, (ptr,): (&'a u8,)) -> u8 {
493-
*ptr
494-
}
495-
}
496-
497-
#[cfg(not(stage0))]
498489
impl<'a> Fn<(&'a u8,)> for BytesDeref {
499490
type Output = u8;
500491

src/snapshots.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
S 2015-01-28 a45e117
2+
freebsd-x86_64 08a3ce7331fd1a52466acc0598cf745a009f86f6
3+
linux-i386 66e36a3461c12e2102a7f7f241d1b0e242c704d0
4+
linux-x86_64 0ae2f5da9913cfa211a367de77d5faa2ff798918
5+
macos-i386 d1a6776f00bf5091d73816d46c7fca8617575bd8
6+
macos-x86_64 cd4d7659b93e2341316cef4b7c5c9b50d23c6bbf
7+
winnt-i386 14859dde2eb57f8c54989852ae6f807e66576338
8+
winnt-x86_64 693c0d1068debe5781e89e0d9efee85825eeae6c
9+
110
S 2015-01-27 7774359
211
freebsd-x86_64 63623b632d4f9c33ad3b3cfaeebf8e2dd8395c96
312
linux-i386 937b0b126aade54dc2c7198cad67f40d711b64ba

0 commit comments

Comments
 (0)