syntax: ast_map: use borrowed references into the AST.
This commit is contained in:
parent
9259b022f8
commit
d6fb338d01
6 changed files with 374 additions and 276 deletions
|
|
@ -1308,16 +1308,11 @@ pub enum UnboxedClosureKind {
|
|||
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
|
||||
pub enum InlinedItem {
|
||||
IIItem(P<Item>),
|
||||
IITraitItem(DefId /* impl id */, InlinedTraitItem),
|
||||
IITraitItem(DefId /* impl id */, TraitItem),
|
||||
IIImplItem(DefId /* impl id */, ImplItem),
|
||||
IIForeign(P<ForeignItem>),
|
||||
}
|
||||
|
||||
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
|
||||
pub enum InlinedTraitItem {
|
||||
ProvidedInlinedTraitItem(P<Method>),
|
||||
RequiredInlinedTraitItem(P<Method>),
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use serialize::json;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue