about summary refs log tree commit diff
path: root/src/test/ui/lint
AgeCommit message (Collapse)AuthorLines
2019-04-23Update ui testsvarkor-3/+3
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-2/+0
2019-04-17Rollup merge of #59128 - oli-obk:colorful_json, r=mark-i-m,eddybMazdak Farrokhzad-71/+72
Emit ansi color codes in the `rendered` field of json diagnostics cc @ljedrz Implemented for https://github.com/rust-lang/rust/pull/56595#issuecomment-447645115 (x.py clippy)
2019-04-16Don't test json with color codes on windowsOliver Scherer-53/+54
2019-04-15include mode in unused binding suggestion spanAndy Russell-0/+107
2019-04-02Update ui tests to latest masterOliver Scherer-18/+18
2019-04-02Rename `colorful-json` to `json-rendered` and make it a selection instead of ↵Oliver Scherer-27/+27
a bool
2019-04-02Emit ansi color codes in the `rendered` field of json diagnosticsOliver Scherer-45/+45
2019-03-30Handle glob import in redundancy checkFabian Drinck-9/+0
2019-03-30Change message to present tenseFabian Drinck-4/+4
2019-03-30Add glob import to redundancy testFabian Drinck-6/+36
2019-03-30Fix testsFabian Drinck-5/+13
2019-03-30Replace REDUNDANT_IMPORT with UNUSED_IMPORTSFabian Drinck-7/+4
2019-03-30Edit ui testsFabian Drinck-0/+1
2019-03-30Distinguish between imported and defined itemsFabian Drinck-1/+1
2019-03-30Bless testsFabian Drinck-0/+23
2019-03-30Improve warningFabian Drinck-7/+4
2019-03-30Add lint for redundant importsFabian Drinck-0/+31
Co-authored-by: Stephan Schauerte <stephan.schauerte@gmail.com>
2019-03-25Update testsJohn Kåre Alsaker-26/+26
2019-03-14Auto merge of #59120 - alexreg:move-issue-tests-1, r=varkorbors-2/+7
Moved issue tests to subdirs and normalised names Consistency, decluttering, ease of navigation :-) r? @Centril
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-2/+7
2019-03-12Visit impl Trait for dead_code lintSeo Sanghyeon-0/+32
2019-03-11Update testsVadim Petrochenkov-461/+461
2019-02-25Rollup merge of #55632 - ollie27:deny_overflowing_literals, r=CentrilMazdak Farrokhzad-14/+43
Deny the `overflowing_literals` lint for all editions The `overflowing_literals` was made deny by default for the 2018 edition by #54507, however I'm not aware of any reason it can't be made deny by default for the 2015 edition as well.
2019-02-15Update testsvarkor-6/+6
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-14Rollup merge of #58407 - euclio:upper-camel-case, r=estebankMazdak Farrokhzad-62/+36
specify "upper camel case" in style lint Also, fix an issue where internal upper case letters were converted to lower case. Fixes #57319.
2019-02-13specify "upper camel case" in style lintAndy Russell-62/+36
Also, fix an issue where internal upper case letters were converted to lower case.
2019-02-11Use hidden suggestions for unused imports lintEsteban Küber-14/+12
2019-02-08unused_imports: update testsPietro Albini-15/+17
2019-01-28Unused variable suggestions on all patterns.David Wood-11/+11
This commit extends existing suggestions to prefix unused variable bindings in match arms with an underscore so that it applies to all patterns in a match arm.
2019-01-19Rollup merge of #57502 - nikomatsakis:fix-trait-alias-1b, r=nikomatsakisMazdak Farrokhzad-0/+60
make trait-aliases work across crates This is rebase of a small part of @alexreg's PR #55994. It focuses just on the changes that integrate trait aliases properly into crate metadata, excluding the stylistic edits and the trait objects. The stylistic edits I also rebased and can open a separate PR. The trait object stuff I found challenging and decided it basically needed to be reimplemented. For now I've excluded it. Since this is really @alexreg's work (I really just rebased) I am going to make it r=me once it is working. Fixes #56488. Fixes #57023.
2019-01-17Deny the `overflowing_literals` lint for all editionsOliver Middleton-14/+43
2019-01-16Auto merge of #57321 - petrochenkov:atokens, r=nikomatsakisbors-7/+7
Implement basic input validation for built-in attributes Correct top-level shape (`#[attr]` vs `#[attr(...)]` vs `#[attr = ...]`) is enforced for built-in attributes, built-in attributes must also fit into the "meta-item" syntax (aka the "classic attribute syntax"). For some subset of attributes (found by crater run), errors are lowered to deprecation warnings. NOTE: This PR previously included https://github.com/rust-lang/rust/pull/57367 as well.
2019-01-15Rollup merge of #57467 - JohnTitor:implement-the-check-attribute-1, r=oli-obkMazdak Farrokhzad-0/+30
Implement `check_attribute` to forbid `#[allow_internal_unsafe]` Fixes #56768. r? @oli-obk
2019-01-15Fix testsYuki Okushi-32/+11
2019-01-15Add error checkYuki Okushi-9/+30
2019-01-15Add testYuki Okushi-0/+30
2019-01-13Implement basic input validation for built-in attributesVadim Petrochenkov-7/+7
2019-01-10new trait alias testsNiko Matsakis-0/+60
Co-authored-by: Alexander Regueiro <alexreg@me.com>
2019-01-08improve non_camel_case_types diagnosticsAndy Russell-63/+92
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08improve non_upper_case_globals diagnosticsAndy Russell-14/+178
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08improve non_snake_case diagnosticsAndy Russell-85/+96
Use a structured suggestion and tighten the span to just the identifier.
2018-12-29update tests line numbersMatthias Krüger-13/+13
2018-12-28remove remaining copyright headersMatthias Krüger-8/+0
2018-12-25Remove licensesMark Rousskov-1869/+850
2018-12-24make non_camel_case_types an early lintAndy Russell-13/+13
2018-12-19suggest similar lint names for unknown lintsAndy Russell-24/+35
2018-12-16Rollup merge of #56439 - JohnGinger:master, r=nikomatsakisMazdak Farrokhzad-0/+1
Clearer error message for dead assign I'm not that this is the right place for this (if it needs an RFC or not). I had the problem where I misunderstood the compiler lint message https://github.com/rust-lang/rust/issues/56436 and other people seem to have had the same problem https://www.reddit.com/r/rust/comments/8cy9p4/value_assigned_to_is_never_read/. I think this new wording might be slightly clearer (and help out beginners like me). I'm very new though, so there might be some nuance I'm missing that would make this more confusing or a bad idea for other reasons. I thought I would create a PR to make it easy to change the code if the consensus was that it would make sense to make a change. If this is the wrong place for this sort of thing I'll happily delete/move it.
2018-12-15Rollup merge of #56738 - turboladen:fix-private_no_mangle_fns-message, ↵Pietro Albini-2/+2
r=zackmdavis Fix private_no_mangle_fns message grammar Simply changes "an warning" to "a warning" in the `private_no_mangle_fns` warning. I started getting this in some code after upgrading to 1.31.0.
2018-12-11Fix private_no_mangle_fns message grammarSteve Loveless-2/+2