Rename "parameter" to "arg"
This commit is contained in:
parent
3e89753283
commit
76c0d68745
35 changed files with 242 additions and 355 deletions
|
@ -13,7 +13,7 @@
|
|||
// interface.
|
||||
//
|
||||
|
||||
use syntax::ast::{self, Ident, AngleBracketedParam};
|
||||
use syntax::ast::{self, Ident, GenericArg};
|
||||
use syntax::ext::base::*;
|
||||
use syntax::ext::base;
|
||||
use syntax::ext::build::AstBuilder;
|
||||
|
@ -39,10 +39,10 @@ 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![AngleBracketedParam::Type(cx.ty_rptr(sp,
|
||||
vec![GenericArg::Type(cx.ty_rptr(sp,
|
||||
cx.ty_ident(sp, Ident::from_str("str")),
|
||||
Some(lt),
|
||||
ast::Mutability::Immutable)],
|
||||
ast::Mutability::Immutable))],
|
||||
Vec::new()))
|
||||
}
|
||||
Ok(s) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue