Merge pull request #20329 from jackh726/next-trait-solver-querify
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run

Switch from Chalk to the next trait solver
This commit is contained in:
Lukas Wirth 2025-08-13 06:10:45 +00:00 committed by GitHub
commit a9450ebba3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
109 changed files with 19148 additions and 1317 deletions

View file

@ -35,7 +35,7 @@
//! error: fmt
//! fmt: option, result, transmute, coerce_unsized, copy, clone, derive
//! fmt_before_1_89_0: fmt
//! fn: tuple
//! fn: sized, tuple
//! from: sized, result
//! future: pin
//! coroutine: pin
@ -326,6 +326,18 @@ pub mod clone {
*self
}
}
impl<T: Clone> Clone for [T; 0] {
fn clone(&self) -> Self {
[]
}
}
impl<T: Clone> Clone for [T; 1] {
fn clone(&self) -> Self {
[self[0].clone()]
}
}
// endregion:builtin_impls
// region:derive
@ -1036,6 +1048,7 @@ pub mod ops {
#[lang = "coroutine"]
pub trait Coroutine<R = ()> {
#[lang = "coroutine_yield"]
type Yield;
#[lang = "coroutine_return"]
type Return;