about summary refs log tree commit diff
path: root/clippy_lints/src/write.rs
AgeCommit message (Collapse)AuthorLines
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-04Rustup to https://github.com/rust-lang/rust/pull/67853Philipp Hansch-1/+1
Specifically caused by https://github.com/rust-lang/rust/pull/67786
2019-12-31Rustup to rust-lang/rust#67707Yuki Okushi-1/+1
2019-12-24rustup "Add span information to `ExprKind::Assign`"Lzu Tao-1/+1
2019-12-04Rustup to rust-lang/rust#66878Matthias Krüger-1/+2
2019-12-03Rustup to rust-lang/rust#66935flip1995-10/+10
2019-11-18Rustup to rustc 1.41.0-nightly (a0d40f8bd 2019-11-18)Manish Goregaokar-57/+35
2019-11-12don't warn on CRLF in `with_newline` lintsAndy Russell-29/+25
2019-11-11Fix breakage due to rust-lang/rust#65324Michael Wright-1/+1
2019-11-09Rustup to rustc 1.40.0-nightly (ac162c6ab 2019-11-09)Manish Goregaokar-0/+1
2019-11-08rustup https://github.com/rust-lang/rust/pull/65916Lzu Tao-1/+2
2019-09-27Rustup to rust-lang/rust#64813flip1995-3/+3
2019-09-03Fix occurrences of `too_many_lines` violationsMichael Wright-0/+1
2019-08-16Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`"Lzu Tao-10/+10
2019-08-11Fixed repeated wordVallentin-1/+1
2019-08-03Doctests: Enable running doc tests for restriction lintsPhilipp Hansch-0/+1
2019-08-03Rustup to latest rustc masterPhilipp Hansch-0/+2
Broken due to: * https://github.com/rust-lang/rust/pull/63180 (`Existential` -> `OpaqueTy`) * https://github.com/rust-lang/rust/pull/63121 (New fields for `FormatSpec`)
2019-06-12rustup https://github.com/rust-lang/rust/pull/61758/filesMatthias Krüger-2/+2
2019-05-30add suggestions for print/write with newline lintAndy Russell-54/+110
2019-05-25Rustup to https://github.com/rust-lang/rust/pull/61026Philipp Hansch-1/+1
2019-05-23Rustup to https://github.com/rust-lang/rust/pull/60965Philipp Hansch-4/+4
2019-05-17Prevent symbocalypseOliver Scherer-8/+6
2019-05-14Use symbols instead of stringsOliver Scherer-6/+9
2019-04-17Use lint pass macrosMatthew Kraai-23/+12
Fixes #3917.
2019-03-12Run more doc testsPhilipp Hansch-7/+19
This executes some more doc tests that were ignored before.
2019-03-05fix or ignore failing doc testsAndy Russell-7/+7
2019-03-05move lint documentation into macro invocationsAndy Russell-104/+104
2019-02-18Check {print,write}_with_newline for literal newlinephil-3/+10
Both regular strings and raw strings can contain literal newlines. This commit extends the lint to also warn about terminating strings with these. Behaviour handling for raw strings is also moved into `check_newlines` by passing in the `is_raw` boolean from `check_tts` as [suggested](https://github.com/rust-lang/rust-clippy/pull/3781#pullrequestreview-204663732)
2019-02-18Don't fail for raw string ending in \nphil-15/+31
Pass tests for #3778, {print,write}_with_newline false positive This change guards the lint from checking newlines with a sort of complicated check to see if it's a raw string. Raw strings shouldn't be newline-checked, since r"\n" is literally \-n, not a newline. I think it's ok not to check for _literal_ newlines at the end of raw strings, but maybe that's debatable. I... don't think this code is that great. I wanted to write the check after `check_tts`, but that was too late -- raw string type info is lost (or I couldn't find it). Putting it inside `check_tts` feels heavy-duty and the check itself feels like a brittle reach possibly into places it shouldn't. Maybe someone can fix this up :)
2019-01-27rustup https://github.com/rust-lang/rust/pull/57726Matthias Krüger-0/+4
2019-01-20Fix breakage due to rust-lang/rust#57755Michael Wright-3/+3
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-29Remove crate:: prefixes from crate pathsKonrad Borowski-7/+7
This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix.
2018-12-27rustup https://github.com/rust-lang/rust/pull/57069Matthias Krüger-1/+1
2018-12-25fix a couple of ftrivial typos (NFC).Matthias Krüger-1/+1
2018-12-11Fix write_with_newline escaping false positiveMichael Wright-8/+28
Fixes #3514
2018-11-27Run rustfmt on clippy_lintsflip1995-7/+10
2018-11-27Fix dogfood errorflip1995-2/+2
2018-11-27Add applicability level to (nearly) every span_lint_and_sugg functionflip1995-6/+11
2018-11-27Fix bugs and improve documentationflip1995-0/+14
Some bugs and some documentation is unrelated to the Applicability change, but these bugs were serious and the documentation was kind of required to understand what's going on.
2018-11-27Add Applicability::Unspecified to span_lint_and_sugg functionsflip1995-2/+5
2018-10-08Merge pull request #3285 from ↵Philipp Hansch-8/+8
devonhollowood/pedantic-dogfood-items-after-statements Pedantic dogfood: `items_after_statements`
2018-10-07Fix items_after_statements for `const`sDevon Hollowood-7/+7
2018-10-07Fix items_after_statements for `use` statementsDevon Hollowood-1/+1
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-15Reintroduce `extern crate` for non-Cargo dependencies.Eduard-Mihai Burtescu-6/+6
2018-09-07Fix #3145 by removing assertflip1995-1/+0
2018-09-06print_with_newline / write_with_newline: don't warn about string with ↵Matthias Krüger-2/+8
several `\n`s in them. Fixes #3126
2018-09-06rustfmt clippy_lints/src/write.rsMatthias Krüger-28/+24