Skip to content

Commit 937e9e5

Browse files
committed
Automated fixes to follow Rust development
Applied fixes: *extern mod is obsolete *attribute fix (cf rust-lang/rust#2569) *priv attribute removal (cf rust-lang/rust@f2a5c7a)
1 parent 7d8d404 commit 937e9e5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lazy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
/// Lazily generated sequence, only traversable once
2222
pub struct Lazy<T> {
23-
priv head: ~[T],
24-
priv thunks: ~[~Eval<Lazy<T>>],
23+
head: ~[T],
24+
thunks: ~[~Eval<Lazy<T>>],
2525
}
2626

2727
trait Eval<L> {

lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ for values of `trait Arbitrary + Shrink`.
1010
1111
Example::
1212
13-
extern mod qc;
13+
extern crate qc;
1414
1515
fn main() {
1616
qc::quick_check("sort", qc::config.verbose(true).trials(500),
@@ -37,12 +37,12 @@ according to those terms.
3737
3838
*/
3939

40-
#[crate_type="lib"];
41-
#[feature(macro_rules)];
42-
#[feature(managed_boxes)];
40+
#![crate_type="lib"]
41+
#![feature(macro_rules)]
42+
#![feature(managed_boxes)]
4343

4444
#[cfg(test)]
45-
extern mod extra;
45+
extern crate extra;
4646

4747
pub use lazy::Lazy;
4848
pub use shrink::Shrink;

0 commit comments

Comments
 (0)