You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this error keys is not a function that can be iterated with for, and I stared at this error message for a long time before realizing that.
It's not clear here what types are mismatched and why. It seems like maybe the expected and actual are reversed. Even so, it would be nice to have some for-specific error.
../src/librustsyntax/parse/token.rs:226:37: 228:5 error: mismatched types: expected `()` but found `bool` (() vs bool)
../src/librustsyntax/parse/token.rs:226 for bad_expr_word_table().keys() {|word|
../src/librustsyntax/parse/token.rs:227 keywords.insert(word, ());
../src/librustsyntax/parse/token.rs:228 }
../src/librustsyntax/parse/token.rs:226:37: 228:5 error: mismatched types: expected `fn(&&str)` but found `fn(&&str) -> bool` (() vs bool)
../src/librustsyntax/parse/token.rs:226 for bad_expr_word_table().keys() {|word|
../src/librustsyntax/parse/token.rs:227 keywords.insert(word, ());
../src/librustsyntax/parse/token.rs:228 }
The text was updated successfully, but these errors were encountered:
Format tests with rustfmt (288-299 of 299)
Extracted from rust-lang#2097.
I'll make a separate PR to enable checking the `tests` directory's formatting in CI. I'll need to rebase that after both this and rust-lang#2254 have landed, and if any new non-rustfmt-formatted files appear in the meantime, we can include formatting those in the same PR that enables the CI.
In this error
keys
is not a function that can be iterated withfor
, and I stared at this error message for a long time before realizing that.It's not clear here what types are mismatched and why. It seems like maybe the expected and actual are reversed. Even so, it would be nice to have some
for
-specific error.The text was updated successfully, but these errors were encountered: