about summary refs log tree commit diff
path: root/compiler/rustc_lint_defs/src
AgeCommit message (Collapse)AuthorLines
2021-01-13Introduce missing ABI lint on extern blocksMark Rousskov-0/+28
2021-01-10Auto merge of #79414 - ↵bors-0/+1
sasurau4:feature/add-suggestion-for-pattern-in-fns-without-body, r=matthewjasper Add suggestion for PATTERNS_IN_FNS_WITHOUT_BODY ## Overview Fix #78927
2021-01-01improve unconditional_panic descriptionRalf Jung-8/+4
2020-12-22Add example to lint docsWesley Wiser-1/+29
2020-12-22Revert "Remove missing_fragment_specifier lint"Wesley Wiser-0/+17
This reverts commit 5ba961018c482e050af908de60e4f8bd1a00f0ae.
2020-12-22Auto merge of #78242 - Nadrieril:rename-overlapping_endpoints-lint, r=varkorbors-9/+8
Rename `overlapping_patterns` lint As discussed in https://github.com/rust-lang/rust/issues/65477. I also tweaked a few things along the way. r? `@varkor` `@rustbot` modify labels: +A-exhaustiveness-checking
2020-12-21add suggest for PatternsInWithoutBodyDaiki Ihara-0/+1
2020-12-07Validate naked functions definitionsTomasz Miąsko-0/+45
2020-11-29Rename the `overlapping_patterns` lint to `overlapping_range_endpoints`Nadrieril-9/+8
2020-11-28lint-docs: Add --validate flag to validate lint docs separately.Eric Huss-5/+19
2020-11-21More consistently use spaces after commas in lists in docsCarol (Nichols || Goulding)-1/+1
2020-11-09Rollup merge of #78114 - jyn514:private, r=oli-obkDylan DPC-0/+1
Recognize `private_intra_doc_links` as a lint Previously, trying to allow this would give another error! ``` warning: unknown lint: `private_intra_doc_links` --> private.rs:1:10 | 1 | #![allow(private_intra_doc_links)] | ^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `broken_intra_doc_links` | = note: `#[warn(unknown_lints)]` on by default warning: public documentation for `DocMe` links to private item `DontDocMe` --> private.rs:2:11 | 2 | /// docs [DontDocMe] | ^^^^^^^^^ this item is private | = note: `#[warn(private_intra_doc_links)]` on by default = note: this link will resolve properly if you pass `--document-private-items` ``` Fixes the issue found in https://github.com/rust-lang/rust/pull/77249#issuecomment-712339227. r? ````````@Manishearth```````` Does anyone know why this additional step is necessary? It seems weird this has to be declared in 3 different places.
2020-11-05Recognize `private_intra_doc_links` as a lintJoshua Nelson-0/+1
Previously, trying to allow this would give another error! ``` warning: unknown lint: `private_intra_doc_links` --> private.rs:1:10 | 1 | #![allow(private_intra_doc_links)] | ^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `broken_intra_doc_links` | = note: `#[warn(unknown_lints)]` on by default warning: public documentation for `DocMe` links to private item `DontDocMe` --> private.rs:2:11 | 2 | /// docs [DontDocMe] | ^^^^^^^^^ this item is private | = note: `#[warn(private_intra_doc_links)]` on by default = note: this link will resolve properly if you pass `--document-private-items` ```
2020-11-05Fix more URLsGuillaume Gomez-4/+4
2020-11-05Rename lint to non_autolinksGuillaume Gomez-4/+4
2020-11-05Rename automatic_links to url_improvementsGuillaume Gomez-4/+4
2020-11-05Improve automatic_links globallyGuillaume Gomez-5/+5
2020-11-05Add documentation for automatic_links lintGuillaume Gomez-3/+3
2020-11-05Add new lint for automatic_links improvementsGuillaume Gomez-0/+12
2020-11-01Turn 'useless #[deprecated]' error into a lint.Mara Bos-0/+27
2020-10-30Implement rustc side of report-future-incompatAaron Hill-0/+3305