Attribute rustc_specialization_trait
Open
Nobody has claimed this yet.
bug
name resolution
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
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
- I tested it on
godbolt.comGCCRS master, April 3 2023. I can run it locally and obtain a commit hash if necessary.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Rust snippet on GCCRS master, using the reported rustc_attrs feature and rustc_specialization_trait attribute. Trace how GCCRS handles this attribute and compare the result with the expected behavior of accepting it; done means the attribute is no longer reported as unknown for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100