| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-06-20 | Add pub struct with allow(dead_code) into worklist | r0cky | -0/+33 | |
| (cherry picked from commit 64450732be8c3111360589e9f8c44eab83f449e0) | ||||
| 2024-06-05 | Detect pub structs never constructed and unused associated constants in traits | r0cky | -10/+119 | |
| 2024-05-23 | Detect unused structs which implement private traits | r0cky | -0/+48 | |
| 2024-03-12 | Replace visibility test with reachability test in dead code detection | Arthur Carcano | -0/+27 | |
| Fixes https://github.com/rust-lang/rust/issues/119545 | ||||
| 2024-03-10 | Detect unused struct impls pub trait | r0cky | -4/+31 | |
| 2024-02-16 | [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives | 许杰友 Jieyou Xu (Joe) | -26/+26 | |
| 2024-02-07 | Update tests | r0cky | -11/+5 | |
| 2024-02-07 | Make traits / trait methods detected by the dead code lint! | r0cky | -0/+65 | |
| 2024-02-01 | `#![feature(inline_const_pat)]` is no longer incomplete | Matthew Jasper | -1/+0 | |
| 2024-01-19 | Stabilize simple offset_of | George Bateman | -2/+2 | |
| 2024-01-18 | `dead_code` treats `#[repr(transparent)]` the same as `#[repr(C)]` | Jake Goulding | -0/+14 | |
| Fixes #119659 | ||||
| 2024-01-02 | Adjust compiler tests for unused_tuple_struct_fields -> dead_code | Jake Goulding | -11/+25 | |
| 2023-12-25 | Pass DeadItem and lint as consistent group in dead-code. | Camille GILLOT | -0/+4 | |
| 2023-11-24 | Show number in error message even for one error | Nilstrieb | -9/+9 | |
| Co-authored-by: Adrian <adrian.iosdev@gmail.com> | ||||
| 2023-08-10 | Respect `#[expect]` the same way `#[allow]` is with the `dead_code` lint | Urgau | -0/+70 | |
| 2023-04-21 | major test improvements | DrMeepster | -1/+1 | |
| 2023-04-21 | bless | DrMeepster | -6/+6 | |
| 2023-04-21 | fmt | DrMeepster | -6/+8 | |
| 2023-04-21 | fix incorrect param env in dead code lint | DrMeepster | -0/+134 | |
| 2023-04-15 | Unignore closure-bang. | Eric Huss | -3/+18 | |
| This test was ignored long ago in https://github.com/rust-lang/rust/pull/20578/ when the syntax for closures was changed. The current status is that a closure with an explicit `!` return type will trigger the `unreachable_code` lint which appears to be the original intent of the test (https://github.com/rust-lang/rust/pull/16836). A closure without a return type won't trigger the lint since the `!` type isn't inferred (AFAIK). This restores the test to its original form. | ||||
| 2023-04-13 | impl reviewer feedback | Ezra Shaw | -6/+22 | |
| - remove unused (pun intentional) `continue` - improve wording with assoc items in general | ||||
| 2023-04-13 | dead-code-lint: de-dup multiple unused assoc fns | Ezra Shaw | -55/+40 | |
| 2023-04-13 | refactor: emit "unused assoc fn" in lexical order | Ezra Shaw | -26/+80 | |
| with repect to other dead code lints | ||||
| 2023-04-12 | Add regression test for #59003 | Yuki Okushi | -0/+18 | |
| Signed-off-by: Yuki Okushi <jtitor@2k36.org> | ||||
| 2023-02-23 | Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, ↵ | bors | -14/+14 | |
| r=compiler-errors,davidtwco,estebank,oli-obk diagnostics: if AssocFn has self argument, describe as method Discussed in https://rust-lang.zulipchat.com/#narrow/stream/147480-t-compiler.2Fwg-diagnostics/topic/.22associated.20function.22.20vs.20.22method.22/near/329265515 This commit also changes the tooltips on rustdoc intra-doc links targeting methods. For anyone not sure why this is being done, see the Reference definitions of these terms in <https://doc.rust-lang.org/1.67.1/reference/items/associated-items.html#methods> > Associated functions whose first parameter is named `self` are called methods and may be invoked using the [method call operator](https://doc.rust-lang.org/1.67.1/reference/expressions/method-call-expr.html), for example, `x.foo()`, as well as the usual function call notation. In particular, while this means it's technically correct for rustc to refer to a method as an associated function (and there are a few cases where it'll still do so), rustc *must never* use the term "method" to refer to an associated function that does not have a `self` parameter. | ||||
| 2023-02-22 | diagnostics: update test cases to refer to assoc fn with `self` as method | Michael Howell | -14/+14 | |
| 2023-02-22 | Lint dead code in closures | clubby789 | -0/+36 | |
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -0/+1735 | |
