-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core::any: replace some generic types with impl Trait #98912
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label +T-libs-api -T-libs |
Signed-off-by: Nick Cameron <[email protected]>
Did we land a change that makes it so that we can still turbofish functions that have an impl trait arg? I'm surprised this works. |
Yes, we stabilised the ability to specify generic parameters where impl Trait is also used, but nothing has changed around actually specifying the implicit parameter corresponding to the impl Trait itself. |
Cool, sounds good, thank you for the update! @bors r+ |
core::any: replace some generic types with impl Trait This gives a cleaner API since the caller only specifies the concrete type they usually want to. r? `@yaahc`
@Dylan-DPC the rollup seems to have pulled in an old version of the PR which was failing tests, rather than the current version which passes them? Could you r? and rollup please? |
sure @bors r=yaahc |
core::any: replace some generic types with impl Trait This gives a cleaner API since the caller only specifies the concrete type they usually want to. r? `@yaahc`
@Dylan-DPC @yaahc could you re-approve this PR please? Bors seems to think it is unapproved |
@bors r=yaahc |
⌛ Testing commit 0c72be3 with merge db924fdb2f045c62e5fb51a735ff4567e36cbe5f... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors retry apple valgrind signal 9 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (8bd12e8): comparison url. Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results
CyclesThis benchmark run did not return any relevant results for this metric. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
This gives a cleaner API since the caller only specifies the concrete type they usually want to.
r? @yaahc