about summary refs log tree commit diff
path: root/src/test/compile-fail/match-static-const-lc.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-61/+0
2015-06-13Use `assert_eq!` instead of `assert!` in testspetrochenkov-3/+3
2015-01-30Make the naming lints only warn on names with upper/lowercase equivalentsP1start-3/+3
Closes #21735.
2015-01-08Update compile fail tests to use isize.Huon Wilson-3/+3
2014-10-28Update code with new lint namesAaron Turon-3/+3
2014-10-09test: Convert statics to constantsAlex Crichton-3/+3
Additionally, add lots of tests for new functionality around statics and `static mut`.
2014-08-30Unify non-snake-case lints and non-uppercase statics lintsP1start-1/+3
This unifies the `non_snake_case_functions` and `uppercase_variables` lints into one lint, `non_snake_case`. It also now checks for non-snake-case modules. This also extends the non-camel-case types lint to check type parameters, and merges the `non_uppercase_pattern_statics` lint into the `non_uppercase_statics` lint. Because the `uppercase_variables` lint is now part of the `non_snake_case` lint, all non-snake-case variables that start with lowercase characters (such as `fooBar`) will now trigger the `non_snake_case` lint. New code should be updated to use the new `non_snake_case` lint instead of the previous `non_snake_case_functions` and `uppercase_variables` lints. All use of the `non_uppercase_pattern_statics` should be replaced with the `non_uppercase_statics` lint. Any code that previously contained non-snake-case module or variable names should be updated to use snake case names or disable the `non_snake_case` lint. Any code with non-camel-case type parameters should be changed to use camel case or disable the `non_camel_case_types` lint. [breaking-change]
2014-08-14libsyntax: Accept `use foo as bar;` in lieu of `use bar as foo;`Patrick Walton-1/+1
The old syntax will be removed after a snapshot. RFC #47. Issue #16461.
2014-06-08update identifier naming warnings to give an exampleP1start-3/+3
This updates identifier warnings such as ``struct `foo_bar` should have a camel case identifier`` to provide an example. Closes #14738.
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-2/+2
Closes #2569
2013-12-08Add dead-code warning passKiet Tran-0/+1
2013-10-01fix tests for check-fast.Felix S. Klock II-1/+16
2013-10-01Revise error message to use phrase "all caps" instead of "uppercase".Felix S. Klock II-2/+2
This is to clarify that the lint is checking for THIS_THING and not This.
2013-10-01Add new lint: non_uppercase_pattern_statics, for #7526.Felix S. Klock II-0/+43
This tries to warn about code like: ```rust match (0,0) { (0, aha) => { ... }, ... } ``` where `aha` is actually a static constant, not a binding.