Add a span to ast::TyParam
This commit is contained in:
parent
09bfb92fdc
commit
c3b2f2b0c6
6 changed files with 13 additions and 6 deletions
|
@ -66,6 +66,7 @@ pub trait AstBuilder {
|
|||
fn strip_bounds(&self, bounds: &Generics) -> Generics;
|
||||
|
||||
fn typaram(&self,
|
||||
span: Span,
|
||||
id: ast::Ident,
|
||||
bounds: OwnedSlice<ast::TyParamBound>,
|
||||
default: Option<P<ast::Ty>>) -> ast::TyParam;
|
||||
|
@ -368,6 +369,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
}
|
||||
|
||||
fn typaram(&self,
|
||||
span: Span,
|
||||
id: ast::Ident,
|
||||
bounds: OwnedSlice<ast::TyParamBound>,
|
||||
default: Option<P<ast::Ty>>) -> ast::TyParam {
|
||||
|
@ -375,7 +377,8 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
ident: id,
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
bounds: bounds,
|
||||
default: default
|
||||
default: default,
|
||||
span: span
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue