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
|
@ -1035,15 +1035,15 @@ pub fn find_transparency(
|
|||
pub fn allow_internal_unstable<'a>(
|
||||
sess: &'a Session,
|
||||
attrs: &'a [Attribute],
|
||||
) -> Option<impl Iterator<Item = Symbol> + 'a> {
|
||||
Some(allow_unstable(sess, attrs, sym::allow_internal_unstable))
|
||||
) -> impl Iterator<Item = Symbol> + 'a {
|
||||
allow_unstable(sess, attrs, sym::allow_internal_unstable)
|
||||
}
|
||||
|
||||
pub fn rustc_allow_const_fn_unstable<'a>(
|
||||
sess: &'a Session,
|
||||
attrs: &'a [Attribute],
|
||||
) -> Option<impl Iterator<Item = Symbol> + 'a> {
|
||||
Some(allow_unstable(sess, attrs, sym::rustc_allow_const_fn_unstable))
|
||||
) -> impl Iterator<Item = Symbol> + 'a {
|
||||
allow_unstable(sess, attrs, sym::rustc_allow_const_fn_unstable)
|
||||
}
|
||||
|
||||
fn allow_unstable<'a>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue