add to tests and configuration

This commit is contained in:
Centri3 2023-06-10 09:13:04 -05:00
parent 243943ff56
commit 95d1bff225
4 changed files with 46 additions and 25 deletions

View file

@ -67,6 +67,7 @@ fn main() {
let o = O { o };
for j in 0..1000 {}
for _ in 0..10 {}
// Do not lint code from external macros
external! { for j in 0..1000 {} }
@ -78,4 +79,6 @@ fn main() {
}
fn b() {}
fn owo() {}
fn wrong_pythagoras(a: f32, b: f32) -> f32 {
a * a + a * b
}

View file

@ -157,10 +157,22 @@ LL | let o = O { o };
| ^
error: this ident consists of a single char
--> $DIR/min_ident_chars.rs:80:4
--> $DIR/min_ident_chars.rs:81:4
|
LL | fn b() {}
| ^
error: aborting due to 27 previous errors
error: this ident consists of a single char
--> $DIR/min_ident_chars.rs:82:21
|
LL | fn wrong_pythagoras(a: f32, b: f32) -> f32 {
| ^
error: this ident consists of a single char
--> $DIR/min_ident_chars.rs:82:29
|
LL | fn wrong_pythagoras(a: f32, b: f32) -> f32 {
| ^
error: aborting due to 29 previous errors