Skip to content

Commit cdbe5ba

Browse files
authored
Merge pull request #48 from StevenLu2004/dev
Fix compile failure issues #27 and #36
2 parents 095942b + e434a92 commit cdbe5ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

emu_macro/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ edition = "2018"
1616

1717
[dependencies]
1818
proc-macro2 = "0.4.30"
19-
syn = { version = "1.0.5", features = ["full", "visit", "fold"] }
20-
quote = "1.0.2"
19+
syn = { version = "=1.0.5", features = ["full", "visit", "fold"] }
20+
quote = "^1.0.3"
2121

2222
[dev-dependencies]
2323
em = { path = "../em", version = "0.*" }
2424

2525
[lib]
26-
proc-macro = true
26+
proc-macro = true

emu_macro/src/accelerating.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl Fold for Accelerator {
120120
// is it load? read? launch?
121121
if path
122122
.path
123-
.is_ident(&Ident::new("load", quote::__rt::Span::call_site()))
123+
.is_ident(&Ident::new("load", quote::__private::Span::call_site()))
124124
{
125125
let new_code = quote! {
126126
{
@@ -166,7 +166,7 @@ impl Fold for Accelerator {
166166
new_ast
167167
} else if path
168168
.path
169-
.is_ident(&Ident::new("read", quote::__rt::Span::call_site()))
169+
.is_ident(&Ident::new("read", quote::__private::Span::call_site()))
170170
{
171171
let new_code = quote! {
172172
{
@@ -190,7 +190,7 @@ impl Fold for Accelerator {
190190
new_ast
191191
} else if path
192192
.path
193-
.is_ident(&Ident::new("launch", quote::__rt::Span::call_site()))
193+
.is_ident(&Ident::new("launch", quote::__private::Span::call_site()))
194194
{
195195
self.ready_to_launch = true;
196196

@@ -256,7 +256,7 @@ impl Fold for Accelerator {
256256

257257
// (b) generate arguments
258258
let args = code_generator.params.iter().map(|param| {
259-
let ident = Ident::new(&param.name, quote::__rt::Span::call_site());
259+
let ident = Ident::new(&param.name, quote::__private::Span::call_site());
260260
let ident_literal = ident.to_string().clone();
261261

262262
if param.is_array {

0 commit comments

Comments
 (0)