Skip to content

Commit 99cca04

Browse files
Put #[inline] in the correct place
At present, the macro only adds `#[inline]` to the first method.
1 parent 93e0d47 commit 99cca04

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/librustc_middle/ty/query/on_disk_cache.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -909,10 +909,12 @@ where
909909

910910
macro_rules! encoder_methods {
911911
($($name:ident($ty:ty);)*) => {
912-
#[inline]
913-
$(fn $name(&mut self, value: $ty) -> Result<(), Self::Error> {
914-
self.encoder.$name(value)
915-
})*
912+
$(
913+
#[inline]
914+
fn $name(&mut self, value: $ty) -> Result<(), Self::Error> {
915+
self.encoder.$name(value)
916+
}
917+
)*
916918
}
917919
}
918920

0 commit comments

Comments
 (0)