Skip to content

Commit d6fb338

Browse files
committed
syntax: ast_map: use borrowed references into the AST.
1 parent 9259b02 commit d6fb338

File tree

6 files changed

+367
-269
lines changed

6 files changed

+367
-269
lines changed

mk/crates.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ DEPS_graphviz := std
7070
DEPS_green := std native:context_switch
7171
DEPS_rustuv := std native:uv native:uv_support
7272
DEPS_native := std
73-
DEPS_syntax := std term serialize log fmt_macros debug
73+
DEPS_syntax := std term serialize log fmt_macros debug arena
7474
DEPS_rustc := syntax flate arena serialize getopts rbml \
7575
time log graphviz debug rustc_llvm rustc_back
7676
DEPS_rustc_llvm := native:rustllvm libc std

src/libsyntax/ast.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1308,16 +1308,11 @@ pub enum UnboxedClosureKind {
13081308
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
13091309
pub enum InlinedItem {
13101310
IIItem(P<Item>),
1311-
IITraitItem(DefId /* impl id */, InlinedTraitItem),
1311+
IITraitItem(DefId /* impl id */, TraitItem),
1312+
IIImplItem(DefId /* impl id */, ImplItem),
13121313
IIForeign(P<ForeignItem>),
13131314
}
13141315

1315-
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
1316-
pub enum InlinedTraitItem {
1317-
ProvidedInlinedTraitItem(P<Method>),
1318-
RequiredInlinedTraitItem(P<Method>),
1319-
}
1320-
13211316
#[cfg(test)]
13221317
mod test {
13231318
use serialize::json;

0 commit comments

Comments
 (0)