summary refs log tree commit diff
path: root/compiler/rustc_session/src/lint
AgeCommit message (Collapse)AuthorLines
2020-11-06Revert "Remove missing_fragment_specifier lint"Mark Rousskov-0/+33
This reverts commit 5ba961018c482e050af908de60e4f8bd1a00f0ae.
2020-09-27Add documentation for `private_intra_doc_links`Joshua Nelson-1/+1
2020-09-27Separate `private_intra_doc_links` and `broken_intra_doc_links` into ↵Joshua Nelson-0/+11
separate lints This is not ideal because it means `deny(broken_intra_doc_links)` will no longer `deny(private_intra_doc_links)`. However, it can't be fixed with a new lint group, because `broken` is already in the `rustdoc` lint group; there would need to be a way to nest groups somehow. This also removes the early `return` so that the link will be generated even though it gives a warning.
2020-09-24Don't talk about determinismOliver Scherer-2/+2
2020-09-23Update documentation testsOliver Scherer-16/+6
2020-09-21Pacify tidyOliver Scherer-0/+4
2020-09-21Document future incompat lintsOliver Scherer-0/+17
2020-09-20Use precise errors during const to pat conversion instead of a catch-all on ↵Oliver Scherer-18/+52
the main constant
2020-09-20Lint on function pointers used in patternsOliver Scherer-0/+27
2020-09-13Make const_evaluatable_unchecked lint example not depend on the architecture ↵Eric Huss-1/+1
pointer size.
2020-09-13Support `ignore` for lint examples.Eric Huss-4/+16
2020-09-13Link rustdoc lint docs to the rustdoc book.Eric Huss-125/+13
2020-09-13Auto-generate lint documentation.Eric Huss-0/+2118
2020-09-11Turn unstable trait impl error into a lint, so it can be disabled.Mara Bos-1/+8
2020-09-10Auto merge of #75573 - Aaron1011:feature/const-mutation-lint, r=oli-obkbors-0/+7
Add CONST_ITEM_MUTATION lint Fixes #74053 Fixes #55721 This PR adds a new lint `CONST_ITEM_MUTATION`. Given an item `const FOO: SomeType = ..`, this lint fires on: * Attempting to write directly to a field (`FOO.field = some_val`) or array entry (`FOO.array_field[0] = val`) * Taking a mutable reference to the `const` item (`&mut FOO`), including through an autoderef `FOO.some_mut_self_method()` The lint message explains that since each use of a constant creates a new temporary, the original `const` item will not be modified.
2020-09-08add tracking issue, fix rebaseBastian Kauschke-1/+1
2020-09-08convert to future compat lintBastian Kauschke-0/+11
2020-09-07Add CONST_ITEM_MUTATION lintAaron Hill-0/+7
Fixes #74053 Fixes #55721 This PR adds a new lint `CONST_ITEM_MUTATION`. Given an item `const FOO: SomeType = ..`, this lint fires on: * Attempting to write directly to a field (`FOO.field = some_val`) or array entry (`FOO.array_field[0] = val`) * Taking a mutable reference to the `const` item (`&mut FOO`), including through an autoderef `FOO.some_mut_self_method()` The lint message explains that since each use of a constant creates a new temporary, the original `const` item will not be modified.
2020-08-30mv compiler to compiler/mark-0/+624