Skip to content

Commit 34cb340

Browse files
veera-sivarajantshepang
authored andcommitted
Fix Typo and Remove Outdated Line About C Variadics
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".
1 parent 0ed9229 commit 34cb340

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/ast-validation.md

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ example, when visiting a function declaration,
2626
`AstValidator` checks that the function has:
2727

2828
* no more than `u16::MAX` parameters;
29-
* c-variadic functions are declared with at least one named argument;
3029
* c-variadic argument goes the last in the declaration;
3130
* documentation comments aren't applied to function parameters;
3231
* and other validations.

src/mir/passes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ where we can access the MIR dialect for type checking or other purposes:
3131
## Implementing and registering a pass
3232

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

0 commit comments

Comments
 (0)