Skip to content
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

Rollup of 10 pull requests #120335

Merged
merged 28 commits into from
Jan 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0e6f7c6
Add AsyncFn family of traits
compiler-errors Dec 20, 2023
fde86e5
We do not need impl_trait_in_assoc_ty
compiler-errors Dec 20, 2023
17b4333
select AsyncFn traits during overloaded call op
compiler-errors Dec 20, 2023
2c2f3ed
Provide more context on recursive `impl` evaluation overflow
estebank Dec 28, 2023
c85bb27
Account for trailing comma in removal suggestion
estebank Dec 28, 2023
29bdf9e
Account for single `where` bound being removed
estebank Jan 4, 2024
db7cd57
Remove track_errors entirely
oli-obk Jan 23, 2024
849d884
Remove --fatal-warnings on wasm targets
djkoloski Jan 23, 2024
83ef18c
coverage: Dismantle `Instrumentor` into ordinary functions
Zalathar Jan 24, 2024
572d7e9
coverage: Flatten the functions for extracting/refining coverage spans
Zalathar Jan 24, 2024
64f590a
Assert that a single scope is passed to `for_scope`
Urgau Jan 22, 2024
cc34dc2
Correctly explain `ensure_forwards_result_if_red`
oli-obk Jan 24, 2024
e088016
Let `ctor_sub_tys` return any Iterator they want
Nadrieril Jan 24, 2024
d992d9c
On E0308 involving `dyn Trait`, mention trait objects
estebank Jan 24, 2024
796814d
Account for expected `dyn Trait` found `impl Trait`
estebank Jan 24, 2024
bdab213
Most of the `DeconstructedPat` `Debug` impl is reusable
Nadrieril Jan 24, 2024
354b45f
Improve `Range: Debug` impl
Nadrieril Jan 24, 2024
8f3af4c
rustc_data_structures: use either instead of itertools
cuviper Jan 24, 2024
8c6cf3c
Rollup merge of #119305 - compiler-errors:async-fn-traits, r=oli-obk
matthiaskrgr Jan 25, 2024
fd92d88
Rollup merge of #119389 - estebank:issue-116925, r=TaKO8Ki
matthiaskrgr Jan 25, 2024
0c45e3c
Rollup merge of #119895 - oli-obk:track_errors_3, r=matthewjasper
matthiaskrgr Jan 25, 2024
55d5ea3
Rollup merge of #120230 - Urgau:for_scope-single-scope, r=michaelwoer…
matthiaskrgr Jan 25, 2024
565961b
Rollup merge of #120278 - djkoloski:remove_fatal_warnings_wasm, r=oli…
matthiaskrgr Jan 25, 2024
72b70ec
Rollup merge of #120292 - Zalathar:dismantle, r=oli-obk
matthiaskrgr Jan 25, 2024
0cbef47
Rollup merge of #120315 - estebank:issue-102629-2, r=wesleywiser
matthiaskrgr Jan 25, 2024
b677c77
Rollup merge of #120317 - Nadrieril:dont-force-slice-of-ty, r=compile…
matthiaskrgr Jan 25, 2024
a1ecced
Rollup merge of #120318 - Nadrieril:share-debug-impl, r=compiler-errors
matthiaskrgr Jan 25, 2024
8c1ba59
Rollup merge of #120325 - cuviper:either-data, r=compiler-errors
matthiaskrgr Jan 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
We do not need impl_trait_in_assoc_ty
compiler-errors committed Dec 25, 2023
commit fde86e586dfc9826d0db81d1230aba77eb043bc6
1 change: 0 additions & 1 deletion library/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -227,7 +227,6 @@
#![feature(fundamental)]
#![feature(generic_arg_infer)]
#![feature(if_let_guard)]
#![feature(impl_trait_in_assoc_type)]
#![feature(inline_const)]
#![feature(intra_doc_pointers)]
#![feature(intrinsics)]
12 changes: 6 additions & 6 deletions library/core/src/ops/async_function.rs
Original file line number Diff line number Diff line change
@@ -70,10 +70,10 @@ mod impls {
where
<F as FnOnce<A>>::Output: Future,
{
type CallFuture<'a> = impl Future<Output = Self::Output> where Self: 'a;
type CallFuture<'a> = <F as FnOnce<A>>::Output where Self: 'a;

extern "rust-call" fn async_call(&self, args: A) -> Self::CallFuture<'_> {
async { self.call(args).await }
self.call(args)
}
}

@@ -82,10 +82,10 @@ mod impls {
where
<F as FnOnce<A>>::Output: Future,
{
type CallMutFuture<'a> = impl Future<Output = Self::Output> where Self: 'a;
type CallMutFuture<'a> = <F as FnOnce<A>>::Output where Self: 'a;

extern "rust-call" fn async_call_mut(&mut self, args: A) -> Self::CallMutFuture<'_> {
async { self.call_mut(args).await }
self.call_mut(args)
}
}

@@ -94,12 +94,12 @@ mod impls {
where
<F as FnOnce<A>>::Output: Future,
{
type CallOnceFuture = impl Future<Output = Self::Output>;
type CallOnceFuture = <F as FnOnce<A>>::Output;

type Output = <<F as FnOnce<A>>::Output as Future>::Output;

extern "rust-call" fn async_call_once(self, args: A) -> Self::CallOnceFuture {
async { self.call_once(args).await }
self.call_once(args)
}
}
}