Skip to content

Commit

Permalink
Add #[inline(always)] to into_query_param
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Apr 11, 2020
1 parent f0c7733 commit 04c91a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_middle/ty/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,14 @@ mod sealed {
}

impl<P> IntoQueryParam<P> for P {
#[inline(always)]
fn into_query_param(self) -> P {
self
}
}

impl IntoQueryParam<DefId> for LocalDefId {
#[inline(always)]
fn into_query_param(self) -> DefId {
self.to_def_id()
}
Expand Down

0 comments on commit 04c91a0

Please sign in to comment.