Clean dead codes
This commit is contained in:
parent
f5dc2653fd
commit
91aee2de15
10 changed files with 4 additions and 260 deletions
|
@ -64,8 +64,6 @@ enum GoalEvaluationKind {
|
|||
|
||||
trait CanonicalResponseExt {
|
||||
fn has_no_inference_or_external_constraints(&self) -> bool;
|
||||
|
||||
fn has_only_region_constraints(&self) -> bool;
|
||||
}
|
||||
|
||||
impl<'tcx> CanonicalResponseExt for Canonical<'tcx, Response<'tcx>> {
|
||||
|
@ -74,11 +72,6 @@ impl<'tcx> CanonicalResponseExt for Canonical<'tcx, Response<'tcx>> {
|
|||
&& self.value.var_values.is_identity()
|
||||
&& self.value.external_constraints.opaque_types.is_empty()
|
||||
}
|
||||
|
||||
fn has_only_region_constraints(&self) -> bool {
|
||||
self.value.var_values.is_identity_modulo_regions()
|
||||
&& self.value.external_constraints.opaque_types.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue