Skip to content

Commit 98c169e

Browse files
committed
Make librust satisfy noncopyable stack closures
1 parent ff4ab9e commit 98c169e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librust/rust.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ impl ValidUsage {
5757
}
5858

5959
enum Action<'self> {
60-
Call(&'self fn(args: &[~str]) -> ValidUsage),
61-
CallMain(&'static str, &'self fn()),
60+
Call(&'self fn:Copy(args: &[~str]) -> ValidUsage),
61+
CallMain(&'static str, &'self fn:Copy()),
6262
}
6363

6464
enum UsageSource<'self> {
6565
UsgStr(&'self str),
66-
UsgCall(&'self fn()),
66+
UsgCall(&'self fn:Copy()),
6767
}
6868

6969
struct Command<'self> {

0 commit comments

Comments
 (0)