diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-06-27 07:40:47 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-06-27 07:40:47 +0000 |
| commit | ef05533c39a8c2009540366731b7459a770f8a8b (patch) | |
| tree | 22b336491f57cff87bf3ab4788cbc5c7bfaad64f /compiler/rustc_session/src | |
| parent | 97bf23d26b1ffff46f071aa687945a6cf85a5914 (diff) | |
| download | rust-ef05533c39a8c2009540366731b7459a770f8a8b.tar.gz rust-ef05533c39a8c2009540366731b7459a770f8a8b.zip | |
Simplify some conditions
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index a433e2371c9..194f7201ff3 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -51,13 +51,6 @@ impl GatedSpans { debug_assert_eq!(span, removed_span); } - /// Is the provided `feature` gate ungated currently? - /// - /// Using this is discouraged unless you have a really good reason to. - pub fn is_ungated(&self, feature: Symbol) -> bool { - self.spans.borrow().get(&feature).map_or(true, |spans| spans.is_empty()) - } - /// Prepend the given set of `spans` onto the set in `self`. pub fn merge(&self, mut spans: FxHashMap<Symbol, Vec<Span>>) { let mut inner = self.spans.borrow_mut(); |
