diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-02-21 18:11:27 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-02-21 18:11:27 +0100 |
| commit | da9a588d4fda02c2fe6d52db651ec4c83b2b3e49 (patch) | |
| tree | 1fb08662196f74d9b0b011e138cf84cbdbdded30 /compiler/rustc_attr/src | |
| parent | a9b90c02a2aaa53881aa650d3792726135402403 (diff) | |
| download | rust-da9a588d4fda02c2fe6d52db651ec4c83b2b3e49.tar.gz rust-da9a588d4fda02c2fe6d52db651ec4c83b2b3e49.zip | |
remove redundant wrapping of return types of allow_internal_unstable() and rustc_allow_const_fn_unstable()
Diffstat (limited to 'compiler/rustc_attr/src')
| -rw-r--r-- | compiler/rustc_attr/src/builtin.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs index 378911f0c4e..24da75114a6 100644 --- a/compiler/rustc_attr/src/builtin.rs +++ b/compiler/rustc_attr/src/builtin.rs @@ -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>( |
