Skip to content

Commit

Permalink
Fix Typo and Remove Outdated Line About C Variadics
Browse files Browse the repository at this point in the history
This PR does two minor fixes:
1. Removes the line "c-variadic functions are declared with at least
one named argument" since it is no longer true since 124048 got
merged.

2. Fixes typo: "lingint" -> "linting".
  • Loading branch information
veera-sivarajan authored and tshepang committed Sep 10, 2024
1 parent 0ed9229 commit 34cb340
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/ast-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ example, when visiting a function declaration,
`AstValidator` checks that the function has:

* no more than `u16::MAX` parameters;
* c-variadic functions are declared with at least one named argument;
* c-variadic argument goes the last in the declaration;
* documentation comments aren't applied to function parameters;
* and other validations.
2 changes: 1 addition & 1 deletion src/mir/passes.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ where we can access the MIR dialect for type checking or other purposes:
## Implementing and registering a pass

A `MirPass` is some bit of code that processes the MIR, typically transforming it along the way
somehow. But it may also do other things like lingint (e.g., [`CheckPackedRef`][lint1],
somehow. But it may also do other things like linting (e.g., [`CheckPackedRef`][lint1],
[`CheckConstItemMutation`][lint2], [`FunctionItemReferences`][lint3], which implement `MirLint`) or
optimization (e.g., [`SimplifyCfg`][opt1], [`RemoveUnneededDrops`][opt2]). While most MIR passes
are defined in the [`rustc_mir_transform`][mirtransform] crate, the `MirPass` trait itself is
Expand Down

0 comments on commit 34cb340

Please sign in to comment.