Skip to content

Commit 1d8264a

Browse files
committed
Update Chalk
1 parent ebdc950 commit 1d8264a

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,15 +429,15 @@ dependencies = [
429429
[[package]]
430430
name = "chalk-base"
431431
version = "0.10.1-dev"
432-
source = "git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b"
432+
source = "git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474"
433433
dependencies = [
434434
"lazy_static",
435435
]
436436

437437
[[package]]
438438
name = "chalk-derive"
439439
version = "0.10.1-dev"
440-
source = "git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b"
440+
source = "git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474"
441441
dependencies = [
442442
"proc-macro2 1.0.3",
443443
"quote 1.0.2",
@@ -448,7 +448,7 @@ dependencies = [
448448
[[package]]
449449
name = "chalk-engine"
450450
version = "0.10.1-dev"
451-
source = "git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b"
451+
source = "git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474"
452452
dependencies = [
453453
"chalk-base",
454454
"chalk-derive",
@@ -459,7 +459,7 @@ dependencies = [
459459
[[package]]
460460
name = "chalk-ir"
461461
version = "0.10.1-dev"
462-
source = "git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b"
462+
source = "git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474"
463463
dependencies = [
464464
"chalk-base",
465465
"chalk-derive",
@@ -468,7 +468,7 @@ dependencies = [
468468
[[package]]
469469
name = "chalk-solve"
470470
version = "0.10.1-dev"
471-
source = "git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b"
471+
source = "git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474"
472472
dependencies = [
473473
"chalk-base",
474474
"chalk-derive",

src/librustc_middle/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rustc_serialize = { path = "../librustc_serialize" }
3030
rustc_ast = { path = "../librustc_ast" }
3131
rustc_span = { path = "../librustc_span" }
3232
byteorder = { version = "1.3" }
33-
chalk-ir = { git = "https://github.com/jackh726/chalk.git", rev = "58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b" }
33+
chalk-ir = { git = "https://github.com/jackh726/chalk.git", rev = "c8f342bf5e48051333d0b2c7fab81347fc21c474" }
3434
#chalk-ir = "0.10.0"
3535
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
3636
measureme = "0.7.1"

src/librustc_traits/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ rustc_span = { path = "../librustc_span" }
1919
#chalk-ir = "0.10.0"
2020
#chalk-rust-ir = "0.10.0"
2121
#chalk-solve = "0.10.0"
22-
chalk-solve = { git = "https://github.com/jackh726/chalk.git", rev = "58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b" }
23-
chalk-ir = { git = "https://github.com/jackh726/chalk.git", rev = "58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b" }
22+
chalk-solve = { git = "https://github.com/jackh726/chalk.git", rev = "c8f342bf5e48051333d0b2c7fab81347fc21c474" }
23+
chalk-ir = { git = "https://github.com/jackh726/chalk.git", rev = "c8f342bf5e48051333d0b2c7fab81347fc21c474" }
2424
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
2525
rustc_infer = { path = "../librustc_infer" }
2626
rustc_trait_selection = { path = "../librustc_trait_selection" }

src/librustc_traits/chalk/db.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,7 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
321321
opaque_ty_id: chalk_ir::OpaqueTyId<RustInterner<'tcx>>,
322322
) -> Arc<chalk_solve::rust_ir::OpaqueTyDatum<RustInterner<'tcx>>> {
323323
// FIXME(chalk): actually lower opaque ty
324-
let hidden_ty =
325-
self.tcx.mk_ty(ty::Tuple(self.tcx.intern_substs(&[]))).lower_into(&self.interner);
326324
let value = chalk_solve::rust_ir::OpaqueTyDatumBound {
327-
hidden_ty,
328325
bounds: chalk_ir::Binders::new(chalk_ir::VariableKinds::new(&self.interner), vec![]),
329326
};
330327
Arc::new(chalk_solve::rust_ir::OpaqueTyDatum {
@@ -418,6 +415,14 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
418415
fn is_object_safe(&self, trait_id: chalk_ir::TraitId<RustInterner<'tcx>>) -> bool {
419416
self.tcx.is_object_safe(trait_id.0)
420417
}
418+
419+
fn hidden_opaque_type(
420+
&self,
421+
_id: chalk_ir::OpaqueTyId<RustInterner<'tcx>>,
422+
) -> chalk_ir::Ty<RustInterner<'tcx>> {
423+
// FIXME(chalk): actually get hidden ty
424+
self.tcx.mk_ty(ty::Tuple(self.tcx.intern_substs(&[]))).lower_into(&self.interner)
425+
}
421426
}
422427

423428
/// Creates a `InternalSubsts` that maps each generic parameter to a higher-ranked

0 commit comments

Comments
 (0)