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 @@ -429,15 +429,15 @@ dependencies = [
429
429
[[package ]]
430
430
name = " chalk-base"
431
431
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 "
433
433
dependencies = [
434
434
" lazy_static" ,
435
435
]
436
436
437
437
[[package ]]
438
438
name = " chalk-derive"
439
439
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 "
441
441
dependencies = [
442
442
" proc-macro2 1.0.3" ,
443
443
" quote 1.0.2" ,
@@ -448,7 +448,7 @@ dependencies = [
448
448
[[package ]]
449
449
name = " chalk-engine"
450
450
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 "
452
452
dependencies = [
453
453
" chalk-base" ,
454
454
" chalk-derive" ,
@@ -459,7 +459,7 @@ dependencies = [
459
459
[[package ]]
460
460
name = " chalk-ir"
461
461
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 "
463
463
dependencies = [
464
464
" chalk-base" ,
465
465
" chalk-derive" ,
@@ -468,7 +468,7 @@ dependencies = [
468
468
[[package ]]
469
469
name = " chalk-solve"
470
470
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 "
472
472
dependencies = [
473
473
" chalk-base" ,
474
474
" 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