Skip to content

Commit 6760bef

Browse files
committed
Update to rust master
1 parent 4207b2b commit 6760bef

34 files changed

+123
-99
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "git2"
4-
version = "0.1.5"
4+
version = "0.1.6"
55
authors = ["Alex Crichton <alex@alexcrichton.com>"]
66
license = "MIT/Apache-2.0"
77
readme = "README.md"

examples/add.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15+
#![feature(old_orphan_check)]
1516
#![deny(warnings)]
1617

1718
extern crate git2;
@@ -21,7 +22,7 @@ extern crate "rustc-serialize" as rustc_serialize;
2122
use docopt::Docopt;
2223
use git2::Repository;
2324

24-
#[deriving(RustcDecodable)]
25+
#[derive(RustcDecodable)]
2526
struct Args {
2627
arg_spec: Vec<String>,
2728
flag_dry_run: bool,

examples/clone.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15+
#![feature(old_orphan_check)]
1516
#![deny(warnings)]
1617

1718
extern crate git2;
@@ -24,7 +25,7 @@ use git2::build::{RepoBuilder, CheckoutBuilder};
2425
use std::cell::RefCell;
2526
use std::io::stdio;
2627

27-
#[deriving(RustcDecodable)]
28+
#[derive(RustcDecodable)]
2829
struct Args {
2930
arg_url: String,
3031
arg_path: String,

examples/fetch.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15+
#![feature(old_orphan_check)]
1516
#![deny(warnings)]
1617

1718
extern crate git2;
@@ -23,7 +24,7 @@ use git2::{Repository, RemoteCallbacks, Direction};
2324
use std::io::stdio;
2425
use std::str;
2526

26-
#[deriving(RustcDecodable)]
27+
#[derive(RustcDecodable)]
2728
struct Args {
2829
arg_remote: Option<String>,
2930
}

examples/init.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15+
#![feature(old_orphan_check)]
1516
#![deny(warnings)]
1617

1718
extern crate git2;
@@ -22,7 +23,7 @@ use docopt::Docopt;
2223
use git2::{Repository, RepositoryInitOptions, RepositoryInitMode, Error};
2324
use std::num::FromStrRadix;
2425

25-
#[deriving(RustcDecodable)]
26+
#[derive(RustcDecodable)]
2627
struct Args {
2728
arg_directory: String,
2829
flag_quiet: bool,

examples/log.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15-
#![feature(macro_rules)]
15+
#![feature(macro_rules, old_orphan_check)]
1616
#![deny(warnings)]
1717

1818
extern crate "rustc-serialize" as rustc_serialize;
@@ -25,7 +25,7 @@ use docopt::Docopt;
2525
use git2::{Repository, Signature, Commit, ObjectType, Time, DiffOptions};
2626
use git2::{Pathspec, Diff, Error, DiffFormat};
2727

28-
#[deriving(RustcDecodable)]
28+
#[derive(RustcDecodable)]
2929
struct Args {
3030
arg_commit: Vec<String>,
3131
arg_spec: Vec<String>,

examples/ls-remote.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15+
#![feature(old_orphan_check)]
1516
#![deny(warnings)]
1617

1718
extern crate git2;
@@ -21,7 +22,7 @@ extern crate "rustc-serialize" as rustc_serialize;
2122
use docopt::Docopt;
2223
use git2::{Repository, Direction};
2324

24-
#[deriving(RustcDecodable)]
25+
#[derive(RustcDecodable)]
2526
struct Args {
2627
arg_remote: String,
2728
}

examples/rev-list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1414
*/
1515

16-
#![feature(slicing_syntax)]
16+
#![feature(slicing_syntax, old_orphan_check)]
1717
#![deny(warnings)]
1818

1919
extern crate git2;
@@ -23,7 +23,7 @@ extern crate "rustc-serialize" as rustc_serialize;
2323
use docopt::Docopt;
2424
use git2::{Repository, Error, Revwalk, Oid};
2525

26-
#[deriving(RustcDecodable)]
26+
#[derive(RustcDecodable)]
2727
struct Args {
2828
arg_spec: Vec<String>,
2929
flag_topo_order: bool,

examples/rev-parse.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15+
#![feature(old_orphan_check)]
1516
#![deny(warnings)]
1617

1718
extern crate git2;
@@ -21,7 +22,7 @@ extern crate "rustc-serialize" as rustc_serialize;
2122
use docopt::Docopt;
2223
use git2::Repository;
2324

24-
#[deriving(RustcDecodable)]
25+
#[derive(RustcDecodable)]
2526
struct Args {
2627
arg_spec: String,
2728
flag_git_dir: Option<String>,

examples/status.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
*/
1414

15+
#![feature(old_orphan_check)]
1516
#![deny(warnings)]
1617

1718
extern crate git2;
@@ -22,7 +23,7 @@ use std::str;
2223
use docopt::Docopt;
2324
use git2::{Repository, Error, StatusOptions, ErrorCode};
2425

25-
#[deriving(RustcDecodable)]
26+
#[derive(RustcDecodable)]
2627
struct Args {
2728
arg_spec: Vec<String>,
2829
flag_short: bool,
@@ -38,7 +39,7 @@ struct Args {
3839
flag_list_submodules: bool,
3940
}
4041

41-
#[deriving(Eq, PartialEq)]
42+
#[derive(Eq, PartialEq)]
4243
enum Format { Long, Short, Porcelain }
4344

4445
fn run(args: &Args) -> Result<(), Error> {

libgit2-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "libgit2-sys"
4-
version = "0.1.4"
4+
version = "0.1.5"
55
authors = ["Alex Crichton <alex@alexcrichton.com>"]
66
links = "git2"
77
build = "build.rs"

libgit2-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extern crate "pkg-config" as pkg_config;
22

33
use std::os;
4-
use std::io::{mod, fs, Command};
4+
use std::io::{self, fs, Command};
55
use std::io::process::InheritFd;
66

77
fn main() {

0 commit comments

Comments
 (0)