Rust-GCC / gccrs

GCC Front-End for Rust
https://rust-gcc.github.io/
GNU General Public License v2.0
2.32k stars 148 forks source link

Attribute rustc_specialization_trait #2089

Open powerboat9 opened 1 year ago

powerboat9 commented 1 year ago

I tried this code:

#![feature(rustc_attrs)]

#[rustc_specialization_trait]
#[allow(unused)]
trait Foo {}

I expected to see this happen: No error

Instead, this happened:

<source>:3:3: error: unknown attribute
    3 | #[rustc_specialization_trait]
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~

Meta

bjorn3 commented 1 year ago

This is used for #![feature(min_specialization)].