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 = [
435435[[package ]]
436436name = " chalk-base"
437437version = " 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 "
439439dependencies = [
440440 " lazy_static" ,
441441]
442442
443443[[package ]]
444444name = " chalk-derive"
445445version = " 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 "
447447dependencies = [
448448 " proc-macro2 1.0.3" ,
449449 " quote 1.0.2" ,
@@ -454,7 +454,7 @@ dependencies = [
454454[[package ]]
455455name = " chalk-engine"
456456version = " 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 "
458458dependencies = [
459459 " chalk-base" ,
460460 " chalk-derive" ,
@@ -465,7 +465,7 @@ dependencies = [
465465[[package ]]
466466name = " chalk-ir"
467467version = " 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 "
469469dependencies = [
470470 " chalk-base" ,
471471 " chalk-derive" ,
@@ -474,7 +474,7 @@ dependencies = [
474474[[package ]]
475475name = " chalk-solve"
476476version = " 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 "
478478dependencies = [
479479 " chalk-base" ,
480480 " chalk-derive" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ rustc_serialize = { path = "../librustc_serialize" }
3030rustc_ast = { path = " ../librustc_ast" }
3131rustc_span = { path = " ../librustc_span" }
3232byteorder = { 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"
3535smallvec = { version = " 1.0" , features = [" union" , " may_dangle" ] }
3636measureme = " 0.7.1"
Original file line number Diff line number Diff 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 " }
2424smallvec = { version = " 1.0" , features = [" union" , " may_dangle" ] }
2525rustc_infer = { path = " ../librustc_infer" }
2626rustc_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
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
You can’t perform that action at this time.
0 commit comments