mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Auto merge of #15125 - lowr:patch/rustc_coinductive, r=Veykril
internal: support `#[rustc_coinductive]` rust-lang/rust#100386 changed the trait solver so that `Sized` is treated as coinductive trait, just like auto traits. This is now controlled by the perma-unstable `#[rustc_coinductive]` attribute (rust-lang/rust#108033), which this PR adds support for. In practice, I don't think this matters much if at all. Currently we don't give chalk enough information so chalk cannot precisely (dis)prove `Sized` bounds.
This commit is contained in:
commit
021604431c
4 changed files with 45 additions and 8 deletions
|
@ -63,6 +63,7 @@ pub mod marker {
|
|||
#[lang = "sized"]
|
||||
#[fundamental]
|
||||
#[rustc_specialization_trait]
|
||||
#[rustc_coinductive]
|
||||
pub trait Sized {}
|
||||
// endregion:sized
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue