remove redundant wrapping of return types of allow_internal_unstable() and rustc_allow_const_fn_unstable()
This commit is contained in:
parent
a9b90c02a2
commit
da9a588d4f
4 changed files with 8 additions and 9 deletions
|
@ -756,8 +756,8 @@ impl SyntaxExtension {
|
|||
name: Symbol,
|
||||
attrs: &[ast::Attribute],
|
||||
) -> SyntaxExtension {
|
||||
let allow_internal_unstable = attr::allow_internal_unstable(sess, &attrs)
|
||||
.map(|features| features.collect::<Vec<Symbol>>().into());
|
||||
let allow_internal_unstable =
|
||||
Some(attr::allow_internal_unstable(sess, &attrs).collect::<Vec<Symbol>>().into());
|
||||
|
||||
let mut local_inner_macros = false;
|
||||
if let Some(macro_export) = sess.find_by_name(attrs, sym::macro_export) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue