1
Fork 0

Rename "parameter" to "arg"

This commit is contained in:
varkor 2018-02-23 17:48:54 +00:00
parent 3e89753283
commit 76c0d68745
35 changed files with 242 additions and 355 deletions

View file

@ -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) => {