Skip to content

Commit 95bc439

Browse files
committed
Auto merge of rust-lang#136593 - lukas-code:ty-value-perf, r=<try>
[perf] try to mitigate regression in fast reject for `ty::Value` rust-lang#136318 (comment) r? ghost
2 parents 820bfff + dc8caa3 commit 95bc439

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/ty/consts/valtree.rs

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ impl<'tcx> rustc_type_ir::inherent::ValueConst<TyCtxt<'tcx>> for Value<'tcx> {
149149
self.ty
150150
}
151151

152+
#[inline]
152153
fn valtree(self) -> ValTree<'tcx> {
153154
self.valtree
154155
}

0 commit comments

Comments
 (0)