forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 4
Proposal for fixits
Graydon Hoare edited this page Jan 6, 2012
·
1 revision
rustc
should output "fix-its" like clang does. Here are some ideas:
-
Incorrect use of numeric literals.
auto i = 0u; i += 3; // suggest "3u"
-
Use of
for
wherefor each
was meant.for (v in foo.iter()) // suggest "for each"
-
Typos on record field names.
fn f(rec(int foo, int bar) r) { ... } f(rec(foo=1, baz=2)); // suggest "bar"