Skip to content

Commit 41b0bc1

Browse files
inline more
1 parent 00f06a1 commit 41b0bc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/trait_def.rs

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ impl<'tcx> TyCtxt<'tcx> {
118118
/// Iterate over every impl that could possibly match the self type `self_ty`.
119119
///
120120
/// `trait_def_id` MUST BE the `DefId` of a trait.
121+
#[inline(always)]
121122
pub fn for_each_relevant_impl(
122123
self,
123124
trait_def_id: DefId,
@@ -132,6 +133,7 @@ impl<'tcx> TyCtxt<'tcx> {
132133
)
133134
}
134135

136+
#[inline(always)]
135137
pub fn for_each_relevant_impl_treating_projections(
136138
self,
137139
trait_def_id: DefId,

0 commit comments

Comments
 (0)