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 = [
429429[[package ]]
430430name = " chalk-base"
431431version = " 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 "
433433dependencies = [
434434 " lazy_static" ,
435435]
436436
437437[[package ]]
438438name = " chalk-derive"
439439version = " 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 "
441441dependencies = [
442442 " proc-macro2 1.0.3" ,
443443 " quote 1.0.2" ,
@@ -448,7 +448,7 @@ dependencies = [
448448[[package ]]
449449name = " chalk-engine"
450450version = " 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 "
452452dependencies = [
453453 " chalk-base" ,
454454 " chalk-derive" ,
@@ -459,7 +459,7 @@ dependencies = [
459459[[package ]]
460460name = " chalk-ir"
461461version = " 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 "
463463dependencies = [
464464 " chalk-base" ,
465465 " chalk-derive" ,
@@ -468,7 +468,7 @@ dependencies = [
468468[[package ]]
469469name = " chalk-solve"
470470version = " 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 "
472472dependencies = [
473473 " chalk-base" ,
474474 " 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