-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: compiler/rustc_middle/src/hir/map/mod.rs:810:21: no name for param # [ doc ( alias = "false" ) ] DiagnosticBuilder (hir_id=HirId { owner: DefId(0:4 ~ mutant[8787]::StructuredDiagnostic::extended), local_id: 1 }) #86239
Comments
ICE only appears since 1.52. @rustbot label regression-from-stable-to-stable |
Better-looking code example trait Trait {
fn method(#[doc(alias = "m")] _n: i32) {}
} Bisection points to 9503ea1
|
This is indeed caused by #80920 since we're now checking parameters unlike before. The issue is in when checking that a doc alias is not the same name as the thing it is aliasing. The call to The question I have is whether we should support params for doc aliases. I didn't find anything in the tracking issue to indicate that it was supposed to be supported, and I personally don't think it makes sense. If we decide to not support doc aliases for params, then it should be an easy change to |
Doc aliases are only supported for items showing up in doc search, function parameters don't, so in this case, it should error on the doc alias attribute. |
Do you want to send a fix or should I? |
@GuillaumeGomez I'll submit a fix. |
Thanks! Please ping me on it (and don't forget to add a test for it too ;) ). |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: