Skip to content

Cleanup: Consistently use Param instead of Arg #62426

Closed
@Centril

Description

@Centril

For example, ideally fn visit_arg would be named fn visit_param since this is about formal parameters (in function signatures and from the POV inside the function body) instead of actual arguments (the values you pass to functions).

The type Arg should probably be named Param.

(This is not an exhaustive list, there are other places "arg" is used not mentioned here that should probably use "param" instead)

cc @petrochenkov @c410-f3r
cc #61856

This issue has been assigned to @kper via this comment.

Metadata

Metadata

Assignees

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)A-frontendArea: Compiler frontend (errors, parsing and HIR)A-parserArea: The lexing & parsing of Rust source code to an ASTC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.S-blockedStatus: Blocked on something else such as an RFC or other implementation work.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions