Handle attributes on cross-crate tuple-structs correctly

Fixes #11741