about summary refs log tree commit diff
path: root/src/test/ui/lint
AgeCommit message (Collapse)AuthorLines
2019-07-09normalize use of backticks in compiler messages for libsyntax/feature_gateSamy Kacimi-119/+119
https://github.com/rust-lang/rust/issues/60532
2019-07-06in which the `non_ascii_idents` lint appears (RFC 2457)Zack M. Davis-0/+43
RFC 2457 declares: "A `non_ascii_idents` lint is added to the compiler. This lint is allow by default."
2019-07-06Make WhileTrue into an EarlyLintPass lint.Mazdak Farrokhzad-23/+32
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-34/+34
2019-06-30Extend #[must_use] lint to arraysvarkor-0/+91
2019-06-30Improve error messages for boxed trait objects in tuplesvarkor-3/+33
2019-06-30Extend the #[must_use] lint to boxed typesvarkor-2/+13
2019-06-24--bless you.Mazdak Farrokhzad-5/+5
2019-06-24Address review comments.Mazdak Farrokhzad-1/+0
2019-06-24lint-type-overflow2: warn -> deny.Mazdak Farrokhzad-32/+21
2019-06-23let_chains: scrutinee -> head expression.Mazdak Farrokhzad-4/+4
2019-06-23let_chains: Adjust unnecessary parens tests.Mazdak Farrokhzad-4/+4
2019-06-10Implement RFC 2645 (transparent enums and unions)Michael Bradshaw-24/+46
Tracking issue: #60405
2019-06-09Address review commentsVadim Petrochenkov-69/+0
2019-06-08Remove some more `#![feature(custom_attribute)]`sVadim Petrochenkov-40/+40
2019-06-03Auto merge of #61100 - varkor:must_use-tuple-expr, r=cramertjbors-0/+64
Apply #[must_use] lint to components of tuples Fixes https://github.com/rust-lang/rust/issues/61061.
2019-06-03Add nested must_use variantvarkor-1/+11
2019-06-03Specify tuple element in lint messagevarkor-10/+10
2019-06-03Add function call to testvarkor-4/+18
2019-06-03Use precise span for must_use tuple componentsvarkor-3/+23
2019-06-03Add test for #[must_use] in tuplesvarkor-0/+20
2019-05-30Update ui and run-pass for ellipsis_inclusive_range_patterns lintmemoryruins-11/+69
2019-05-29Auto merge of #61203 - memoryruins:bare_trait_objects, r=Centrilbors-14/+14
Warn on bare_trait_objects by default The `bare_trait_objects` lint is set to `warn` by default. Most ui tests have been updated to use `dyn` to avoid creating noise in stderr files. r? @Centril cc #54910
2019-05-29Update ui test suite to use dynmemoryruins-14/+14
2019-05-25Reword malformed attribute input diagnosticsEsteban Küber-36/+32
- Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error - Use consistend error message: "malformed `attrname` attribute input" - Provide suggestions when possible - Move note/help to label/suggestion - Use consistent wording "ill-formed" -> "malformed" - Move diagnostic logic out of parser
2019-05-23Add test for denying overflowing literal in loopvarkor-1/+10
2019-05-23Auto merge of #60174 - matthewjasper:add-match-arm-scopes, r=pnkfelixbors-2/+42
Add match arm scopes and other scope fixes * Add drop and lint scopes for match arms. * Lint attributes are now respected on match arms. * Make sure we emit a StorageDead if we diverge when initializing a temporary. * Adjust MIR pretty printing of scopes for locals. * Don't generate duplicate lint scopes for `let statements`. * Add some previously missing fake borrows for matches. closes #46525 cc @rust-lang/compiler
2019-05-22Allow null-pointer-optimized enums in FFI if their underlying representation ↵Michael Bradshaw-10/+65
is FFI safe This allows types like Option<NonZeroU8> to be used in FFI without triggering the improper_ctypes lint. This works by changing the is_repr_nullable_ptr function to consider an enum E to be FFI-safe if: - E has no explicit #[repr(...)]. - It only has two variants. - One of those variants is empty (meaning it has no fields). - The other variant has only one field. - That field is one of the following: - &T - &mut T - extern "C" fn - core::num::NonZero* - core::ptr::NonNull<T> - #[repr(transparent)] struct wrapper around one of the types in this list. - The size of E and its field are both known and are both the same size (implying E is participating in the nonnull optimization).
2019-05-21Give match arms a drop/region scopeMatthew Jasper-2/+10
Also give arms the correct lint scope in MIR.
2019-05-21Respect lint attributes on match armsMatthew Jasper-0/+32
2019-05-04Fix misleading indentationJesper Steen Møller-6/+5
2019-05-04Fix #45268 by saving all NodeId's for resolved traits.Jesper Steen Møller-0/+61
2019-04-30Include signed integer types in the lintvarkor-1/+8
2019-04-30Preserve literal suffixesvarkor-1/+8
2019-04-30Place types inside backticksvarkor-77/+75
2019-04-30Add a test for overflowing endpointsvarkor-0/+47
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