Skip to content

Commit

Permalink
Auto merge of rust-lang#136593 - lukas-code:ty-value-perf, r=<try>
Browse files Browse the repository at this point in the history
[perf] try to mitigate regression in fast reject for `ty::Value`

rust-lang#136318 (comment)

r? ghost
  • Loading branch information
bors committed Feb 5, 2025
2 parents 820bfff + dc8caa3 commit 95bc439
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/ty/consts/valtree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ impl<'tcx> rustc_type_ir::inherent::ValueConst<TyCtxt<'tcx>> for Value<'tcx> {
self.ty
}

#[inline]
fn valtree(self) -> ValTree<'tcx> {
self.valtree
}
Expand Down

0 comments on commit 95bc439

Please sign in to comment.