It was used before the const/static split when everything was static and inline by default, but some statics had to be marked as #[inline(never)] to be non-inlinable and have stable address.
Now all statics have stable address by definition, so the inline attribute is probably not needed anymore.