Skip to content

Commit

Permalink
Atomically update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes committed Aug 15, 2019
1 parent 2314709 commit d262bd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ members = [ "proc-quote-impl" ]

[dependencies]
proc-quote-impl = { version = "0.2.2", path = "./proc-quote-impl" }
quote = "0.6.12"
proc-macro-hack = "0.5.4"
proc-macro2 = { version = "0.4.27", default-features = false }
quote = "1.0"
proc-macro-hack = "0.5"
proc-macro2 = { version = "1.0", default-features = false }
# TODO(blocked on rust-lang/rust#54723)
# https://github.com/rust-lang/rust/issues/54723
# Remove syn dependency once `new_raw` is stabilized
syn = "0.15.30"
syn = "1.0"

[badges]
travis-ci = { repository = "Goncalerta/proc-quote" }
travis-ci = { repository = "Goncalerta/proc-quote" }
6 changes: 3 additions & 3 deletions proc-quote-impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ edition = "2018"
proc-macro = true

[dependencies]
quote = { version = "0.6.12" }
proc-macro-hack = "0.5.4"
proc-macro2 = { version = "0.4.27", default-features = false }
quote = { version = "1.0" }
proc-macro-hack = "0.5"
proc-macro2 = { version = "1.0", default-features = false }
6 changes: 3 additions & 3 deletions tests/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,23 @@ fn test_char() {
let tokens = quote! {
#zero #pound #quote #apost #newline #heart
};
let expected = "'\\u{0}' '#' '\\\"' '\\'' '\\n' '\\u{2764}'";
let expected = r#"'\u{0}' '#' '"' '\'' '\n' '\u{2764}'"#;
assert_eq!(expected, tokens.to_string());
}

#[test]
fn test_str() {
let s = "\0 a 'b \" c";
let tokens = quote!(#s);
let expected = "\"\\u{0} a \\'b \\\" c\"";
let expected = r#""\u{0} a 'b \" c""#;
assert_eq!(expected, tokens.to_string());
}

#[test]
fn test_string() {
let s = "\0 a 'b \" c".to_string();
let tokens = quote!(#s);
let expected = "\"\\u{0} a \\'b \\\" c\"";
let expected = r#""\u{0} a 'b \" c""#;
assert_eq!(expected, tokens.to_string());
}

Expand Down

0 comments on commit d262bd9

Please sign in to comment.