compiler errors - Is there a rustc equivalent of -Wall -Werror? -
first 10 minutes learning rust, i'm given 58 lint options , i'm thinking: gcc has solution this.
something go in .toml file? workaround?
gcc’s -werror becomes rustc --deny warnings or crate attribute #![deny(warnings)].
-wall or -weverything aren’t necessary in rust; of sorts of things covered compilation errors or lints default deny or warn. should understand lints that: lints. matters @ least slightly, , very, subjective. lints allow default should so—they’re useful tools specific purposes, enabling lot of them doesn’t make sense. (the box-pointers lint, example: in type of library may wish able “i guarantee uses no heap memory”, it’s not that’s bad.)