Remove redundant is_dyn_thread_safe checks#153776
Remove redundant is_dyn_thread_safe checks#153776zetanumbers wants to merge 2 commits intorust-lang:mainfrom
is_dyn_thread_safe checks#153776Conversation
|
rustbot has assigned @JonathanBrouwer. Use Why was this reviewer chosen?The reviewer was selected based on:
|
is_dyn_thread_safe checksis_dyn_thread_safe checks
|
The change to reduce the number of checks is good here. I'm not sure about adding a separate type for it. The new type |
Yes. That's because traits are predicates over types. Analogously |
|
Refactor uses of
FromDynto reduce number of redundantis_dyn_thread_safechecks and addDynThreadSafetype to encourage users to avoid those in the future.PR is split up into multiple commits for an easier review.