From 04c91a0bba32d7c361b17ee8c5c0b3cc12c0d42b Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Sat, 11 Apr 2020 16:29:50 -0700 Subject: [PATCH] Add `#[inline(always)]` to `into_query_param` --- src/librustc_middle/ty/query/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_middle/ty/query/mod.rs b/src/librustc_middle/ty/query/mod.rs index 76e519c990e..899479e65a7 100644 --- a/src/librustc_middle/ty/query/mod.rs +++ b/src/librustc_middle/ty/query/mod.rs @@ -202,12 +202,14 @@ mod sealed { } impl

IntoQueryParam

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