Skip to content

Commit

Permalink
Updated code to work on stable Rust.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Oct 17, 2018
1 parent fb5a8d4 commit e01dc3b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/attr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::str::FromStr;

use proc_macro2;
use quote::ToTokens;
use syn;

Expand Down
2 changes: 2 additions & 0 deletions src/clone.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use proc_macro2;

use ast;
use attr;
use matcher;
Expand Down
2 changes: 2 additions & 0 deletions src/cmp.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// https://github.com/rust-lang/rust/issues/13101

use proc_macro2;

use ast;
use matcher;
use syn;
Expand Down
2 changes: 2 additions & 0 deletions src/debug.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use proc_macro2;

use ast;
use attr;
use matcher;
Expand Down
2 changes: 2 additions & 0 deletions src/default.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use proc_macro2;

use ast;
use attr;
use syn;
Expand Down
2 changes: 2 additions & 0 deletions src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use proc_macro2;

use ast;
use attr;
use matcher;
Expand Down
7 changes: 4 additions & 3 deletions src/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
// * not generic, we use our own `ast`, `synstructure` only knows about `syn`
// * missing information (what arm are we in?, what attributes? etc.)

use proc_macro2;
use quote::ToTokens;
use syn;

use ast;
use attr;
use quote;

use quote::ToTokens;
use syn;

/// The type of binding to use when generating a pattern.
#[derive(Debug, Copy, Clone)]
pub enum BindingStyle {
Expand Down
2 changes: 2 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use proc_macro2;

use ast;
use attr;
use bound;
Expand Down

0 comments on commit e01dc3b

Please sign in to comment.