about summary refs log tree commit diff
path: root/compiler/rustc_attr/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-02-21 18:11:27 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-02-21 18:11:27 +0100
commitda9a588d4fda02c2fe6d52db651ec4c83b2b3e49 (patch)
tree1fb08662196f74d9b0b011e138cf84cbdbdded30 /compiler/rustc_attr/src
parenta9b90c02a2aaa53881aa650d3792726135402403 (diff)
downloadrust-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.rs8
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>(