Skip to content

Commit 6dbcc9b

Browse files
Merge pull request #22314 from ChayimFriedman2/edition-minor
minor: Replace `krate.data().edition` with the available edition
2 parents e26f9ee + e746056 commit 6dbcc9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/hir-ty/src/infer/fallback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl<'db> InferenceContext<'_, 'db> {
7575
}
7676

7777
fn diverging_fallback_behavior(&self) -> DivergingFallbackBehavior {
78-
if self.krate().data(self.db).edition.at_least_2024() {
78+
if self.edition.at_least_2024() {
7979
return DivergingFallbackBehavior::ToNever;
8080
}
8181

0 commit comments

Comments
 (0)