Skip to content

Commit 46cd8b8

Browse files
committed
Auto merge of rust-lang#15185 - HKalbasi:mir, r=HKalbasi
Bump chalk This fixes some issues, but I didn't add fix #num for them since 1. I don't know all of them and 2. we may want to add test for them.
2 parents 0841a84 + bb85a98 commit 46cd8b8

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

Cargo.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir-ty/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ either = "1.7.0"
2222
tracing = "0.1.35"
2323
rustc-hash = "1.1.0"
2424
scoped-tls = "1.0.0"
25-
chalk-solve = { version = "0.91.0", default-features = false }
26-
chalk-ir = "0.91.0"
27-
chalk-recursive = { version = "0.91.0", default-features = false }
28-
chalk-derive = "0.91.0"
25+
chalk-solve = { version = "0.92.0", default-features = false }
26+
chalk-ir = "0.92.0"
27+
chalk-recursive = { version = "0.92.0", default-features = false }
28+
chalk-derive = "0.92.0"
2929
la-arena.workspace = true
3030
once_cell = "1.17.0"
3131
triomphe.workspace = true

crates/hir-ty/src/chalk_db.rs

+2
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ fn well_known_trait_from_lang_item(item: LangItem) -> Option<WellKnownTrait> {
597597
LangItem::Unsize => WellKnownTrait::Unsize,
598598
LangItem::Tuple => WellKnownTrait::Tuple,
599599
LangItem::PointeeTrait => WellKnownTrait::Pointee,
600+
LangItem::FnPtrTrait => WellKnownTrait::FnPtr,
600601
_ => return None,
601602
})
602603
}
@@ -618,6 +619,7 @@ fn lang_item_from_well_known_trait(trait_: WellKnownTrait) -> LangItem {
618619
WellKnownTrait::Unpin => LangItem::Unpin,
619620
WellKnownTrait::Unsize => LangItem::Unsize,
620621
WellKnownTrait::Pointee => LangItem::PointeeTrait,
622+
WellKnownTrait::FnPtr => LangItem::FnPtrTrait,
621623
}
622624
}
623625

crates/hir-ty/src/tests/macros.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ fn expr_macro_def_expanded_in_various_places() {
202202
100..119 'for _ ...!() {}': IntoIterator::IntoIter<isize>
203203
100..119 'for _ ...!() {}': &mut IntoIterator::IntoIter<isize>
204204
100..119 'for _ ...!() {}': fn next<IntoIterator::IntoIter<isize>>(&mut IntoIterator::IntoIter<isize>) -> Option<<IntoIterator::IntoIter<isize> as Iterator>::Item>
205-
100..119 'for _ ...!() {}': Option<Iterator::Item<IntoIterator::IntoIter<isize>>>
205+
100..119 'for _ ...!() {}': Option<IntoIterator::Item<isize>>
206206
100..119 'for _ ...!() {}': ()
207207
100..119 'for _ ...!() {}': ()
208208
100..119 'for _ ...!() {}': ()
209-
104..105 '_': Iterator::Item<IntoIterator::IntoIter<isize>>
209+
104..105 '_': IntoIterator::Item<isize>
210210
117..119 '{}': ()
211211
124..134 '|| spam!()': impl Fn() -> isize
212212
140..156 'while ...!() {}': ()
@@ -293,11 +293,11 @@ fn expr_macro_rules_expanded_in_various_places() {
293293
114..133 'for _ ...!() {}': IntoIterator::IntoIter<isize>
294294
114..133 'for _ ...!() {}': &mut IntoIterator::IntoIter<isize>
295295
114..133 'for _ ...!() {}': fn next<IntoIterator::IntoIter<isize>>(&mut IntoIterator::IntoIter<isize>) -> Option<<IntoIterator::IntoIter<isize> as Iterator>::Item>
296-
114..133 'for _ ...!() {}': Option<Iterator::Item<IntoIterator::IntoIter<isize>>>
296+
114..133 'for _ ...!() {}': Option<IntoIterator::Item<isize>>
297297
114..133 'for _ ...!() {}': ()
298298
114..133 'for _ ...!() {}': ()
299299
114..133 'for _ ...!() {}': ()
300-
118..119 '_': Iterator::Item<IntoIterator::IntoIter<isize>>
300+
118..119 '_': IntoIterator::Item<isize>
301301
131..133 '{}': ()
302302
138..148 '|| spam!()': impl Fn() -> isize
303303
154..170 'while ...!() {}': ()

crates/hir-ty/src/tests/regression.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1240,11 +1240,11 @@ fn test() {
12401240
16..66 'for _ ... }': IntoIterator::IntoIter<()>
12411241
16..66 'for _ ... }': &mut IntoIterator::IntoIter<()>
12421242
16..66 'for _ ... }': fn next<IntoIterator::IntoIter<()>>(&mut IntoIterator::IntoIter<()>) -> Option<<IntoIterator::IntoIter<()> as Iterator>::Item>
1243-
16..66 'for _ ... }': Option<Iterator::Item<IntoIterator::IntoIter<()>>>
1243+
16..66 'for _ ... }': Option<IntoIterator::Item<()>>
12441244
16..66 'for _ ... }': ()
12451245
16..66 'for _ ... }': ()
12461246
16..66 'for _ ... }': ()
1247-
20..21 '_': Iterator::Item<IntoIterator::IntoIter<()>>
1247+
20..21 '_': IntoIterator::Item<()>
12481248
25..39 '{ let x = 0; }': ()
12491249
31..32 'x': i32
12501250
35..36 '0': i32

0 commit comments

Comments
 (0)