Recover fn
keyword as Fn
trait in bounds
This commit is contained in:
parent
caa64e5b5e
commit
aff403cf68
9 changed files with 148 additions and 79 deletions
|
@ -626,7 +626,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
|
||||
// Builds `#[name = val]`.
|
||||
//
|
||||
// Note: `span` is used for both the identifer and the value.
|
||||
// Note: `span` is used for both the identifier and the value.
|
||||
pub fn attr_name_value_str(&self, name: Symbol, val: Symbol, span: Span) -> ast::Attribute {
|
||||
let g = &self.sess.parse_sess.attr_id_generator;
|
||||
attr::mk_attr_name_value_str(g, ast::AttrStyle::Outer, name, val, span)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue