Missing inline declaration?

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?

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

1 Like

Ah. Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.