Skip to content

Commit 0d2544c

Browse files
committed
---
yaml --- r: 155071 b: refs/heads/try2 c: 9651d94 h: refs/heads/master i: 155069: 20abd9e 155067: e10a2f8 155063: 1f356bc 155055: 97b8971 155039: c7f6392 155007: a9b5006 v: v3
1 parent f851629 commit 0d2544c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 9295454ff58cd11b00499d25d1a17b34e8fd7182
8+
refs/heads/try2: 9651d94a56b93c0997294499ef4dd70e1dfbbb5b
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libfourcc/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ use syntax::ext::base::{ExtCtxt, MacExpr};
6363
use syntax::ext::build::AstBuilder;
6464
use syntax::parse::token;
6565
use syntax::parse::token::InternedString;
66+
use syntax::ptr::P;
6667
use rustc::plugin::Registry;
6768

68-
use std::gc::Gc;
69-
7069
#[plugin_registrar]
7170
pub fn plugin_registrar(reg: &mut Registry) {
7271
reg.register_macro("fourcc", expand_syntax_ext);
@@ -135,7 +134,7 @@ struct Ident {
135134
}
136135

137136
fn parse_tts(cx: &ExtCtxt,
138-
tts: &[ast::TokenTree]) -> (Gc<ast::Expr>, Option<Ident>) {
137+
tts: &[ast::TokenTree]) -> (P<ast::Expr>, Option<Ident>) {
139138
let p = &mut cx.new_parser_from_tts(tts);
140139
let ex = p.parse_expr();
141140
let id = if p.token == token::EOF {
@@ -156,7 +155,7 @@ fn parse_tts(cx: &ExtCtxt,
156155
fn target_endian_little(cx: &ExtCtxt, sp: Span) -> bool {
157156
let meta = cx.meta_name_value(sp, InternedString::new("target_endian"),
158157
ast::LitStr(InternedString::new("little"), ast::CookedStr));
159-
contains(cx.cfg().as_slice(), meta)
158+
contains(cx.cfg().as_slice(), &*meta)
160159
}
161160

162161
// FIXME (10872): This is required to prevent an LLVM assert on Windows

0 commit comments

Comments
 (0)