rollup merge of #18630 : nikomatsakis/purge-the-bars
This commit is contained in:
commit
76d2abe0e7
45 changed files with 954 additions and 630 deletions
|
|
@ -313,14 +313,15 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
.map(|ident| {
|
||||
ast::PathSegment {
|
||||
identifier: ident,
|
||||
lifetimes: Vec::new(),
|
||||
types: OwnedSlice::empty(),
|
||||
parameters: ast::PathParameters::none(),
|
||||
}
|
||||
}).collect();
|
||||
segments.push(ast::PathSegment {
|
||||
identifier: last_identifier,
|
||||
lifetimes: lifetimes,
|
||||
types: OwnedSlice::from_vec(types),
|
||||
parameters: ast::AngleBracketedParameters(ast::AngleBracketedParameterData {
|
||||
lifetimes: lifetimes,
|
||||
types: OwnedSlice::from_vec(types),
|
||||
})
|
||||
});
|
||||
ast::Path {
|
||||
span: sp,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use ast;
|
|||
use codemap::Span;
|
||||
use ext::base::*;
|
||||
use ext::base;
|
||||
use owned_slice::OwnedSlice;
|
||||
use parse::token;
|
||||
use parse::token::{str_to_ident};
|
||||
use ptr::P;
|
||||
|
|
@ -52,8 +51,7 @@ pub fn expand_syntax_ext<'cx>(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]
|
|||
segments: vec!(
|
||||
ast::PathSegment {
|
||||
identifier: res,
|
||||
lifetimes: Vec::new(),
|
||||
types: OwnedSlice::empty(),
|
||||
parameters: ast::PathParameters::none(),
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue