File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -435,15 +435,15 @@ dependencies = [
435
435
[[package ]]
436
436
name = " chalk-base"
437
437
version = " 0.10.1-dev"
438
- source = " git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b "
438
+ source = " git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474 "
439
439
dependencies = [
440
440
" lazy_static" ,
441
441
]
442
442
443
443
[[package ]]
444
444
name = " chalk-derive"
445
445
version = " 0.10.1-dev"
446
- source = " git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b "
446
+ source = " git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474 "
447
447
dependencies = [
448
448
" proc-macro2 1.0.3" ,
449
449
" quote 1.0.2" ,
@@ -454,7 +454,7 @@ dependencies = [
454
454
[[package ]]
455
455
name = " chalk-engine"
456
456
version = " 0.10.1-dev"
457
- source = " git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b "
457
+ source = " git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474 "
458
458
dependencies = [
459
459
" chalk-base" ,
460
460
" chalk-derive" ,
@@ -465,7 +465,7 @@ dependencies = [
465
465
[[package ]]
466
466
name = " chalk-ir"
467
467
version = " 0.10.1-dev"
468
- source = " git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b "
468
+ source = " git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474 "
469
469
dependencies = [
470
470
" chalk-base" ,
471
471
" chalk-derive" ,
@@ -474,7 +474,7 @@ dependencies = [
474
474
[[package ]]
475
475
name = " chalk-solve"
476
476
version = " 0.10.1-dev"
477
- source = " git+https://github.com/jackh726/chalk.git?rev=58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b#58e5a31f48ddd4b940c682e7079d3e79e6ffaa1b "
477
+ source = " git+https://github.com/jackh726/chalk.git?rev=c8f342bf5e48051333d0b2c7fab81347fc21c474#c8f342bf5e48051333d0b2c7fab81347fc21c474 "
478
478
dependencies = [
479
479
" chalk-base" ,
480
480
" chalk-derive" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ rustc_serialize = { path = "../librustc_serialize" }
30
30
rustc_ast = { path = " ../librustc_ast" }
31
31
rustc_span = { path = " ../librustc_span" }
32
32
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 " }
34
34
# chalk-ir = "0.10.0"
35
35
smallvec = { version = " 1.0" , features = [" union" , " may_dangle" ] }
36
36
measureme = " 0.7.1"
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ rustc_span = { path = "../librustc_span" }
19
19
# chalk-ir = "0.10.0"
20
20
# chalk-rust-ir = "0.10.0"
21
21
# 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 " }
24
24
smallvec = { version = " 1.0" , features = [" union" , " may_dangle" ] }
25
25
rustc_infer = { path = " ../librustc_infer" }
26
26
rustc_trait_selection = { path = " ../librustc_trait_selection" }
Original file line number Diff line number Diff line change @@ -321,10 +321,7 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
321
321
opaque_ty_id : chalk_ir:: OpaqueTyId < RustInterner < ' tcx > > ,
322
322
) -> Arc < chalk_solve:: rust_ir:: OpaqueTyDatum < RustInterner < ' tcx > > > {
323
323
// 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 ) ;
326
324
let value = chalk_solve:: rust_ir:: OpaqueTyDatumBound {
327
- hidden_ty,
328
325
bounds : chalk_ir:: Binders :: new ( chalk_ir:: VariableKinds :: new ( & self . interner ) , vec ! [ ] ) ,
329
326
} ;
330
327
Arc :: new ( chalk_solve:: rust_ir:: OpaqueTyDatum {
@@ -418,6 +415,14 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
418
415
fn is_object_safe ( & self , trait_id : chalk_ir:: TraitId < RustInterner < ' tcx > > ) -> bool {
419
416
self . tcx . is_object_safe ( trait_id. 0 )
420
417
}
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
+ }
421
426
}
422
427
423
428
/// Creates a `InternalSubsts` that maps each generic parameter to a higher-ranked
You can’t perform that action at this time.
0 commit comments