1
Fork 0

Uplift push_outlives_components

This commit is contained in:
Michael Goulet 2024-07-05 15:28:47 -04:00
parent 3bec61736a
commit 23c6f23b21
12 changed files with 386 additions and 300 deletions

View file

@ -54,6 +54,13 @@ pub struct Expr<'tcx> {
pub kind: ExprKind,
args: ty::GenericArgsRef<'tcx>,
}
impl<'tcx> rustc_type_ir::inherent::ExprConst<TyCtxt<'tcx>> for Expr<'tcx> {
fn args(self) -> ty::GenericArgsRef<'tcx> {
self.args
}
}
impl<'tcx> Expr<'tcx> {
pub fn new_binop(
tcx: TyCtxt<'tcx>,