Repository navigation
Remove T: Send + Sync bound from Arc::downcast - #161531
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
impl<A: Allocator> Arc<dyn Any + Send + Sync, A> {
// stable diff
- fn downcast<T: Any + Send + Sync>(self) -> Result<Arc<T, A>, Arc<dyn Any + Send + Sync, A>>;
+ fn downcast<T: Any>(self) -> Result<Arc<T, A>, Arc<dyn Any + Send + Sync, A>>;
// unstable diff
- fn downcast_unchecked<T: Any + Send + Sync>(self) -> Arc<T, A>;
+ fn downcast_unchecked<T: Any>(self) -> Arc<T, A>;
}@rfcbot fcp merge libs I think this bound is probably further relaxable to |
|
@Mark-Simulacrum has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/libs-ping: FCP proposed for libs, please feel free to register concerns. |
|
This comment has been minimized.
This comment has been minimized.
8de72e6 to
ddfcd93
Compare
|
cc @joshtriplett @the8472 if either of you is okay checking your box here for this relatively simple change. |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
|
r? me |
… r=clarfonthey Remove `T: Send + Sync` bound from `Arc::downcast` [Discussion](https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/Why.20the.20.60T.3A.20Send.20.2B.20Sync.60.20bound.20in.20.60Arc.3A.3Adowncast.60.3F/with/617793925) on zulip Implements the change described in rust-lang/libs-team#859. T-libs can pick if they want to skip the ACP or not. @rustbot label needs-fcp T-libs
…uwer Rollup of 9 pull requests Successful merges: - #163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope) - #163910 (debugger: stabilize trim-paths unremap file loading) - #166175 (Use `__fastfail()` for `crash()` on Windows) - #166377 (fix: ignore format literal source availability in stable hashes) - #166510 (add c-variadic support for `x87_f80`) - #166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`) - #161531 (Remove `T: Send + Sync` bound from `Arc::downcast`) - #166641 (fix: bootstrap build directory handling with --set) - #166655 (Submodule update of rustc-perf)
…uwer Rollup of 9 pull requests Successful merges: - #163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope) - #163910 (debugger: stabilize trim-paths unremap file loading) - #166377 (fix: ignore format literal source availability in stable hashes) - #166510 (add c-variadic support for `x87_f80`) - #166631 (Remove `fn terminator()` and `terminator_mut()`) - #166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`) - #161531 (Remove `T: Send + Sync` bound from `Arc::downcast`) - #166641 (fix: bootstrap build directory handling with --set) - #166655 (Submodule update of rustc-perf)
Rollup merge of #161531 - maxdexh:arc-downcast-no-sync-send, r=clarfonthey Remove `T: Send + Sync` bound from `Arc::downcast` [Discussion](https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/Why.20the.20.60T.3A.20Send.20.2B.20Sync.60.20bound.20in.20.60Arc.3A.3Adowncast.60.3F/with/617793925) on zulip Implements the change described in rust-lang/libs-team#859. T-libs can pick if they want to skip the ACP or not. @rustbot label needs-fcp T-libs
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope) - rust-lang/rust#163910 (debugger: stabilize trim-paths unremap file loading) - rust-lang/rust#166377 (fix: ignore format literal source availability in stable hashes) - rust-lang/rust#166510 (add c-variadic support for `x87_f80`) - rust-lang/rust#166631 (Remove `fn terminator()` and `terminator_mut()`) - rust-lang/rust#166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`) - rust-lang/rust#161531 (Remove `T: Send + Sync` bound from `Arc::downcast`) - rust-lang/rust#166641 (fix: bootstrap build directory handling with --set) - rust-lang/rust#166655 (Submodule update of rustc-perf)
Discussion on zulip
Implements the change described in rust-lang/libs-team#859.
T-libs can pick if they want to skip the ACP or not.
@rustbot label needs-fcp T-libs