diff options
| author | varkor <github@varkor.com> | 2018-05-25 18:41:03 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-06-20 12:19:04 +0100 |
| commit | d643946550fa349729184a4f70abc01e21ceddc0 (patch) | |
| tree | 56b75eb7b607a7b06db9d88878ee9cca438730de /src/libsyntax/ext | |
| parent | f9d0968906aa6bc5ed0f82d74b5504b58afc9d3b (diff) | |
| download | rust-d643946550fa349729184a4f70abc01e21ceddc0.tar.gz rust-d643946550fa349729184a4f70abc01e21ceddc0.zip | |
Rename ast::GenericParam and ast::GenericArg
It's so confusing to have everything having the same name, at least while refactoring.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index c544adb5c1c..1c74a2bd5be 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -31,7 +31,7 @@ pub trait AstBuilder { fn path_all(&self, sp: Span, global: bool, idents: Vec<ast::Ident>, - args: Vec<ast::GenericArg>, + args: Vec<ast::GenericArgAST>, bindings: Vec<ast::TypeBinding>) -> ast::Path; @@ -42,7 +42,7 @@ pub trait AstBuilder { fn qpath_all(&self, self_type: P<ast::Ty>, trait_path: ast::Path, ident: ast::Ident, - args: Vec<ast::GenericArg>, + args: Vec<ast::GenericArgAST>, bindings: Vec<ast::TypeBinding>) -> (ast::QSelf, ast::Path); @@ -314,7 +314,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { span: Span, global: bool, mut idents: Vec<ast::Ident> , - args: Vec<ast::GenericArg>, + args: Vec<ast::GenericArgAST>, bindings: Vec<ast::TypeBinding> ) -> ast::Path { let last_ident = idents.pop().unwrap(); @@ -356,7 +356,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { self_type: P<ast::Ty>, trait_path: ast::Path, ident: ast::Ident, - args: Vec<ast::GenericArg>, + args: Vec<ast::GenericArgAST>, bindings: Vec<ast::TypeBinding>) -> (ast::QSelf, ast::Path) { let mut path = trait_path; @@ -424,7 +424,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { self.path_all(DUMMY_SP, true, self.std_path(&["option", "Option"]), - vec![ast::GenericArg::Type(ty)], + vec![ast::GenericArgAST::Type(ty)], Vec::new())) } |
