Skip to content

Commit 4228e82

Browse files
bors[bot]lnicola
andauthored
Merge #7016
7016: Bump deps r=flodiebold a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 0dec77a + 9a14e30 commit 4228e82

File tree

4 files changed

+28
-20
lines changed

4 files changed

+28
-20
lines changed

Cargo.lock

Lines changed: 15 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir_ty/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ ena = "0.14.0"
1717
log = "0.4.8"
1818
rustc-hash = "1.1.0"
1919
scoped-tls = "1"
20-
chalk-solve = { version = "0.43", default-features = false }
21-
chalk-ir = "0.43"
22-
chalk-recursive = "0.43"
20+
chalk-solve = { version = "0.45", default-features = false }
21+
chalk-ir = "0.45"
22+
chalk-recursive = "0.45"
2323

2424
stdx = { path = "../stdx", version = "0.0.0" }
2525
hir_def = { path = "../hir_def", version = "0.0.0" }

crates/hir_ty/src/traits/chalk.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,13 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> for ChalkContext<'a> {
5656
fn adt_datum(&self, struct_id: AdtId) -> Arc<StructDatum> {
5757
self.db.struct_datum(self.krate, struct_id)
5858
}
59-
fn adt_repr(&self, _struct_id: AdtId) -> rust_ir::AdtRepr {
60-
rust_ir::AdtRepr { repr_c: false, repr_packed: false }
59+
fn adt_repr(&self, _struct_id: AdtId) -> Arc<rust_ir::AdtRepr<Interner>> {
60+
// FIXME: keep track of these
61+
Arc::new(rust_ir::AdtRepr { c: false, packed: false, int: None })
62+
}
63+
fn discriminant_type(&self, _ty: chalk_ir::Ty<Interner>) -> chalk_ir::Ty<Interner> {
64+
// FIXME: keep track of this
65+
chalk_ir::TyKind::Scalar(chalk_ir::Scalar::Uint(chalk_ir::UintTy::U32)).intern(&Interner)
6166
}
6267
fn impl_datum(&self, impl_id: ImplId) -> Arc<ImplDatum> {
6368
self.db.impl_datum(self.krate, impl_id)
@@ -457,6 +462,7 @@ fn well_known_trait_from_lang_attr(name: &str) -> Option<WellKnownTrait> {
457462
"fn" => WellKnownTrait::Fn,
458463
"unsize" => WellKnownTrait::Unsize,
459464
"coerce_unsized" => WellKnownTrait::CoerceUnsized,
465+
"discriminant_kind" => WellKnownTrait::DiscriminantKind,
460466
_ => return None,
461467
})
462468
}
@@ -473,6 +479,7 @@ fn lang_attr_from_well_known_trait(attr: WellKnownTrait) -> &'static str {
473479
WellKnownTrait::Unsize => "unsize",
474480
WellKnownTrait::Unpin => "unpin",
475481
WellKnownTrait::CoerceUnsized => "coerce_unsized",
482+
WellKnownTrait::DiscriminantKind => "discriminant_kind",
476483
}
477484
}
478485

crates/syntax/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doctest = false
1313
[dependencies]
1414
itertools = "0.9.0"
1515
rowan = "0.10.0"
16-
rustc_lexer = { version = "691.0.0", package = "rustc-ap-rustc_lexer" }
16+
rustc_lexer = { version = "695.0.0", package = "rustc-ap-rustc_lexer" }
1717
rustc-hash = "1.1.0"
1818
arrayvec = "0.5.1"
1919
once_cell = "1.3.1"

0 commit comments

Comments
 (0)