Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22314 from ChayimFriedman2/edition-minor
minor: Replace `krate.data().edition` with the available edition
| -rw-r--r-- | crates/hir-ty/src/infer/fallback.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer/fallback.rs b/crates/hir-ty/src/infer/fallback.rs index 160749591d..3744a434d2 100644 --- a/crates/hir-ty/src/infer/fallback.rs +++ b/crates/hir-ty/src/infer/fallback.rs @@ -75,7 +75,7 @@ impl<'db> InferenceContext<'_, 'db> { } fn diverging_fallback_behavior(&self) -> DivergingFallbackBehavior { - if self.krate().data(self.db).edition.at_least_2024() { + if self.edition.at_least_2024() { return DivergingFallbackBehavior::ToNever; } |