Skip to content

Instantly share code, notes, and snippets.

@arielb1
Created September 26, 2017 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arielb1/5292befb9d2751c1ba0edb8cffab2fbf to your computer and use it in GitHub Desktop.
Save arielb1/5292befb9d2751c1ba0edb8cffab2fbf to your computer and use it in GitHub Desktop.
ProgramEnvironment {
trait_data: {
Foo: TraitDatum {
binders: for<type> TraitDatumBound {
trait_ref: ?0 as Foo,
where_clauses: [
<?0 as Foo>::Assoc: Foo
],
auto: false
}
}
},
associated_ty_data: {
(Foo::Assoc): AssociatedTyDatum {
trait_id: Foo,
id: (Foo::Assoc),
name: "Assoc",
parameter_kinds: [
"Self"
],
where_clauses: []
}
},
program_clauses: [
ProgramClause {
implication: for<type> ProgramClauseImplication {
consequence: WellFormed(?0 as Foo),
conditions: [
WellFormed(?0),
WellFormed(<?0 as Foo>::Assoc as Foo),
<?0 as Foo>::Assoc: Foo
]
},
fallback_clause: false
},
ProgramClause {
implication: for<type> ProgramClauseImplication {
consequence: WellFormed(<?0 as Foo>::Assoc as Foo),
conditions: [
WellFormed(?0 as Foo)
]
},
fallback_clause: false
},
ProgramClause {
implication: for<type> ProgramClauseImplication {
consequence: <?0 as Foo>::Assoc: Foo,
conditions: [
WellFormed(?0 as Foo)
]
},
fallback_clause: false
},
ProgramClause {
implication: for<type> ProgramClauseImplication {
consequence: <?0 as Foo>::Assoc ==> (Foo::Assoc)<?0>,
conditions: [
?0: Foo
]
},
fallback_clause: true
},
ProgramClause {
implication: for<type, type> ProgramClauseImplication {
consequence: ?0: Foo,
conditions: [
<?0 as Foo>::Assoc ==> ?1
]
},
fallback_clause: false
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment