Skip to content

"implement missing members": const transformation #15035

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

Conversation

ponyii
Copy link
Contributor

@ponyii ponyii commented Jun 12, 2023

Fixes #13363

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 12, 2023
@@ -11,7 +11,9 @@ use syntax::{

#[derive(Default)]
struct AstSubsts {
types: Vec<ast::TypeArg>,
// ast::TypeArgs stands in fact for both type and const params
// as consts declared elsewhere look just like type params.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if I should report it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is expected, the parser cannot differentiate that, so for paths, type args might be const references but that cannot be known until the path is resolved semantically

@ponyii ponyii closed this Jun 14, 2023
@ponyii ponyii force-pushed the fix/implement-members-do-not-transform-const-params branch from 266e028 to 6b3659d Compare June 14, 2023 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"implement missing members" assist uses incorrect lifetime name
3 participants