Rust-GCC / Rust-GCC/gccrs

Attribute rustc_specialization_trait

Open
#2,089 1 comment 0 reactions 0 assignees View on GitHub

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.com GCCRS master, April 3 2023. I can run it locally and obtain a commit hash if necessary.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.