-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE when using the doc alias attribute on expr or local #99777
Comments
@rustbot claim |
Hi, so I've realized that this issue is extremely similar to #86239, and the fix is basically fully templated by that issue's closing pull request. The issue seems to come from this rust/compiler/rustc_passes/src/check_attr.rs Lines 594 to 623 in da5b546
The blacklist seems out of place and error prone, considering all the other check_{attr} functions use Target whitelists. Just by looking at possible Target s not covered by the blacklist, I came up with another related ICE by aliasing a match arm:
fn main() {
match () {
#[doc(alias = "foo")]
_ => {}
}
} Is there a specific reason this needs to be a blacklist? This is my first time contributing here, so I'm not too familiar with all the necessary considerations. |
Code
Meta
Stable
rustc --version --verbose
:Nightly
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: