Remove redundant is_dyn_thread_safe checks#153776
Remove redundant is_dyn_thread_safe checks#153776rust-bors[bot] merged 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 |
|
Not quite sure what your point is here. The addition of |
bd83bd6 to
3973d9f
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Well fine, no renames - no renames. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
What |
|
GitHub moment... I've restarted PR ci |
|
Always love some extra static checks, thanks for the work! |
…d-safe, r=JonathanBrouwer Remove redundant `is_dyn_thread_safe` checks Refactor uses of `FromDyn` to reduce number of redundant `is_dyn_thread_safe` checks by replacing `FromDyn::from` with `check_dyn_thread_safe` in tandem with existing `FromDyn::derive` so that the users would avoid redundancy in the future. PR is split up into multiple commits for an easier review.
…uwer Rollup of 5 pull requests Successful merges: - #154103 (coretests: Expand ieee754 parsing and printing tests to f16) - #152669 (rustc_public: add `vtable_entries()` to `TraitRef`) - #153776 (Remove redundant `is_dyn_thread_safe` checks) - #154121 (Fix typos and markdown errors) - #154126 (refactor(attribute parser): move check_custom_mir to attribute parser)
Refactor uses of
FromDynto reduce number of redundantis_dyn_thread_safechecks by replacingFromDyn::fromwithcheck_dyn_thread_safein tandem with existingFromDyn::deriveso that the users would avoid redundancy in the future.PR is split up into multiple commits for an easier review.