Skip to content

Commit

Permalink
Update for Gc -> P change in libsyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjakubowski committed Sep 16, 2014
1 parent 13441c7 commit 108b5ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/link_glfw/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
extern crate rustc;
extern crate syntax;

use std::gc::{Gc, GC};
use std::io::Command;
use std::mem;
use std::str;
Expand All @@ -28,6 +27,7 @@ use syntax::ext::base;
use syntax::ext::build::AstBuilder;
use syntax::parse::token;
use syntax::parse::token::intern_and_get_ident as intern_str;
use syntax::ptr::P;

#[plugin_registrar]
pub fn registrar(reg: &mut rustc::plugin::Registry) {
Expand Down Expand Up @@ -63,8 +63,8 @@ fn attr_link(context: &mut base::ExtCtxt, span: codemap::Span,
}

pub fn expand(context: &mut base::ExtCtxt, span: codemap::Span,
meta_item: Gc<ast::MetaItem>, item: Gc<ast::Item>
) -> Gc<ast::Item> {
meta_item: &ast::MetaItem, item: P<ast::Item>
) -> P<ast::Item> {
let out = Command::new("pkg-config")
.arg("--static")
.arg("--libs-only-l")
Expand Down Expand Up @@ -97,7 +97,7 @@ pub fn expand(context: &mut base::ExtCtxt, span: codemap::Span,
}
}
});
box (GC) item
P(item)
} else {
context.span_err(
span,
Expand Down

0 comments on commit 108b5ae

Please sign in to comment.