Rename *Parameter to *Param
This commit is contained in:
parent
494859e8dd
commit
1ed60a9173
18 changed files with 81 additions and 77 deletions
|
@ -13,7 +13,7 @@
|
|||
// interface.
|
||||
//
|
||||
|
||||
use syntax::ast::{self, Ident, GenericAngleBracketedParam};
|
||||
use syntax::ast::{self, Ident, AngleBracketedParam};
|
||||
use syntax::ext::base::*;
|
||||
use syntax::ext::base;
|
||||
use syntax::ext::build::AstBuilder;
|
||||
|
@ -39,7 +39,7 @@ pub fn expand_option_env<'cx>(cx: &'cx mut ExtCtxt,
|
|||
cx.expr_path(cx.path_all(sp,
|
||||
true,
|
||||
cx.std_path(&["option", "Option", "None"]),
|
||||
vec![GenericAngleBracketedParam::Type(cx.ty_rptr(sp,
|
||||
vec![AngleBracketedParam::Type(cx.ty_rptr(sp,
|
||||
cx.ty_ident(sp, Ident::from_str("str")),
|
||||
Some(lt),
|
||||
ast::Mutability::Immutable)],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue