You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function isn't used anywhere outside of that crate (there is a copy of that function in rustc_datastructures, which is used elsewhere). It shouldn't be pub at all because it is only used in the same file in which it is defined.
rustc_arena currently doesn't depend on rustc_datastructures, and it would be a really heavyweight dependency. I don't think that's worth it as the function is extremely trivial.
Activity
homersimpsons commentedon Jan 27, 2021
Should not we
use rustc_datastructures::cold_pathinstead of duplicating the function ?fogti commentedon Jan 27, 2021
rustc_arenacurrently doesn't depend onrustc_datastructures, and it would be a really heavyweight dependency. I don't think that's worth it as the function is extremely trivial.henryboisdequin commentedon Jan 29, 2021
@rustbot claim
Rollup merge of rust-lang#81505 - henryboisdequin:cold_path-not-pub, …