Fix formatting
This commit is contained in:
parent
8aa2553b50
commit
15f8ffe371
5 changed files with 25 additions and 7 deletions
|
@ -674,12 +674,26 @@ impl<'a> ExtCtxt<'a> {
|
|||
// 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.psess.attr_id_generator;
|
||||
attr::mk_attr_name_value_str(g, ast::AttrStyle::Outer, ast::Safety::Default, name, val, span)
|
||||
attr::mk_attr_name_value_str(
|
||||
g,
|
||||
ast::AttrStyle::Outer,
|
||||
ast::Safety::Default,
|
||||
name,
|
||||
val,
|
||||
span,
|
||||
)
|
||||
}
|
||||
|
||||
// Builds `#[outer(inner)]`.
|
||||
pub fn attr_nested_word(&self, outer: Symbol, inner: Symbol, span: Span) -> ast::Attribute {
|
||||
let g = &self.sess.psess.attr_id_generator;
|
||||
attr::mk_attr_nested_word(g, ast::AttrStyle::Outer, ast::Safety::Default, outer, inner, span)
|
||||
attr::mk_attr_nested_word(
|
||||
g,
|
||||
ast::AttrStyle::Outer,
|
||||
ast::Safety::Default,
|
||||
outer,
|
||||
inner,
|
||||
span,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue