Skip to content

Commit dc8caa3

Browse files
author
Lukas Markeffsky
committed
add #[inline] to perf-sensitive method
1 parent 820bfff commit dc8caa3

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)