]> git.lizzy.rs Git - rust.git/commitdiff
Add `#[inline(always)]` to `into_query_param`
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Sat, 11 Apr 2020 23:29:50 +0000 (16:29 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Sat, 11 Apr 2020 23:29:50 +0000 (16:29 -0700)
src/librustc_middle/ty/query/mod.rs

index 76e519c990ed50c72639eb5df9129fb1efe968e8..899479e65a732086dbea75660f45ce634d625907 100644 (file)
@@ -202,12 +202,14 @@ pub trait IntoQueryParam<P> {
     }
 
     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()
         }