about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-05 15:28:47 -0400
committerMichael Goulet <michael@errs.io>2024-07-06 10:47:46 -0400
commit23c6f23b218f2ba3bb7459215e48032bd5ba0b60 (patch)
tree259dd5d7ce17fa8776618c32ff27c1576c42a01a /compiler/rustc_middle/src
parent3bec61736a59d8c3983ba26b01c58174825ee58c (diff)
downloadrust-23c6f23b218f2ba3bb7459215e48032bd5ba0b60.tar.gz
rust-23c6f23b218f2ba3bb7459215e48032bd5ba0b60.zip
Uplift push_outlives_components
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/consts/kind.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/consts/kind.rs b/compiler/rustc_middle/src/ty/consts/kind.rs
index bf834ef7607..98f35b6b8ab 100644
--- a/compiler/rustc_middle/src/ty/consts/kind.rs
+++ b/compiler/rustc_middle/src/ty/consts/kind.rs
@@ -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>,