Missing inline declaration?

#1

For the implementation of the trait Hash on primitive types: https://doc.rust-lang.org/src/core/hash/mod.rs.html#556

Shouldn’t that be annotated #[inline]? Or is there some reason that is not needed?

0 Likes

#2

Functions with generic type parameters can always be inlined cross-crate, even without the #[inline] attribute.

1 Like

#3

Ah. Thank you.

0 Likes