GSoC syncup: Rewrite Rust lints to operate on frontend's HIR
Rolling agenda.
Proposal
2025-07-07
Progress
- Implementing
ReadonlyChecker
on HIR
Questions
- I don't have any question to ask.
2025-06-30
Progress
- Implementing
ReadonlyChecker
on HIR
Strategy
- Find
AssignmentExpr
- Get left operand of it (that is assignee expression)
- Check if it is mutable or not
Example Code
Question
- Both
QualifiedPathInExpression
and PathInExpression
has Expr::ExprType::Path
. How can we distinguish between these two types of nodes?
2025-06-23
Progress
- finished implementing default HIR visitor
Questions
- I think the
MatchArm
node should have a get_outer_attrs
method, because it has outer attributes but no way to access them.
SelfParam::get_lifetime
returns a const object, but the accept_vis method for Lifetime
is not const qualified.
2025-06-16
Progress
- continue to implement default HIR visitor class
Questions
- Should I visit inner or outer attributes?
- attributes are belongs to AST, so I don't think this should be visited
- Should I visit
StructBase
nodes?
- this type of node doesn't have
accept_vis
function, but Default AST vistor visits StructBase
nodes.
2025-06-09
Progress
- [WIP] Implementing default HIR visitor class
Questions
- Do you think it's better to create individual feature branches directly from the master branch, rather than creating a project branch and then creating feature branches from that?
- Some types of nodes have an accept_vis function, but others don't. What is the difference?
Do you think all types of nodes need to have an accept_vis function?
Links
These template functions can also be quite helpful for you:
Actions:
- Ryutaro to continue DefaultHIRVisitor implementation for next week
2025-06-01
Actions:
- Ryutaro to write down questions if you have any :D
- Arthur to setup a groupchat for PE and Ryutaro