1
Fork 0

Rename *Parameter to *Param

This commit is contained in:
varkor 2018-02-12 21:44:05 +00:00
parent 494859e8dd
commit 1ed60a9173
18 changed files with 81 additions and 77 deletions

View file

@ -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)],