Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/source_analyzer.rs')
-rw-r--r--crates/hir/src/source_analyzer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/hir/src/source_analyzer.rs b/crates/hir/src/source_analyzer.rs
index 6c43f80ce8..bbe1e670de 100644
--- a/crates/hir/src/source_analyzer.rs
+++ b/crates/hir/src/source_analyzer.rs
@@ -626,8 +626,7 @@ impl<'db> SourceAnalyzer<'db> {
has_start: bool,
has_end: bool,
) -> Option<StructId> {
- let has_new_range =
- self.resolver.top_level_def_map().is_unstable_feature_enabled(&sym::new_range);
+ let has_new_range = self.resolver.top_level_def_map().features().new_range;
let lang_items = self.lang_items(db);
match (op_kind, has_start, has_end) {
(RangeOp::Exclusive, false, false) => lang_items.RangeFull,