Cameron Steffen
b049c88fbe
Eat dogfood
2021-04-16 11:39:31 -05:00
Jason Newcomb
d45873b4c1
Remove SmallVec
2021-03-16 12:27:21 -04:00
Jason Newcomb
a7fa2a6fa8
Add suggestion to write_literal
and print_literal
...
Don't lint on a mixture of raw and regular strings
Fix spans in format strings
2021-03-16 12:13:46 -04:00
Jason Newcomb
4c1047167d
More specific spans for use_debug
lint
2021-03-16 12:10:40 -04:00
Jason Newcomb
4450c21f51
Keep track of spans in format strings
2021-03-16 12:10:31 -04:00
Cameron Steffen
1c3a3e7dc6
Don't re-export clippy_utils::diagnostics::*
2021-03-15 20:06:01 -05:00
Cameron Steffen
6fc52a63d1
Move some utils to clippy_utils::source module
2021-03-15 15:34:15 -05:00
Takayuki Nakata
e05965eb13
Remove unneeded blank lines from doc
2021-02-22 23:02:04 +09:00
Manish Goregaokar
a31e5f5f3b
Run rustfmt
2021-02-02 19:57:08 -08:00
Manish Goregaokar
6fb10755c0
Rustup
2021-02-02 19:54:21 -08:00
bors
7b50a4ead7
Auto merge of #6408 - pro-grammer1:master, r=oli-obk
...
Fix false positive in write_literal and print_literal (numeric literals)
changelog: No longer lint numeric literals in [`write_literal`] and [`print_literal`].
Fixes #6335
2021-01-21 14:23:25 +00:00
pro-grammer1
fb2a06dcce
Remove numeric literals from print_literal and write_literal tests
2021-01-17 18:55:59 +00:00
pro-grammer1
ab155b14a2
Negate results of matches!
2021-01-17 18:21:58 +00:00
pro-grammer1
2af642da28
Replace another instance of match with matches
2021-01-17 18:01:01 +00:00
pro-grammer1
0d542b7310
Run tests/ui/update-all-references.sh and refactor match into matches!
2021-01-17 08:48:37 +00:00
Cameron Steffen
76ccfb4ae2
Fix unnecessary keyword intern dogfood
2021-01-08 14:32:32 -06:00
Eduardo Broto
3187cad8ec
Factor out some code in write.rs
...
Get rid of the too-many-lines error.
2020-12-08 23:17:12 +01:00
Josias
7063c36c91
Add eprint! to print_with_newline lint
2020-12-07 23:38:56 +01:00
Josias
b81141cfb9
Add lint print_stderr
...
Resolves #6348
Almost identical to print_stdout, this lint applies to the
`eprintln!` and `eprint!` macros rather than `println!` and
`print!`.
2020-12-07 23:38:56 +01:00
pro-grammer1
415394c3fc
Fix false positive in write_literal and print_literal due to numeric literals
2020-12-01 09:44:43 +00:00
Cameron Steffen
22cc77a232
Use const rustc sym where possible
2020-11-02 11:46:37 -06:00
Takayuki Nakata
83294f894d
Some small fixes
2020-09-26 23:10:25 +09:00
Takayuki Nakata
5b484b4057
Fix the detection of build scripts
2020-09-25 23:32:18 +09:00
Takayuki Nakata
2892a2b0f5
Fix FP in print_stdout
...
This lint shouldn't be emitted in `build.rs` as `println!` and `print!` are used for the build script.
2020-09-24 23:22:54 +09:00
Andy Russell
0261e341fd
{print,write}-with-newline: do not suggest empty format string
2020-09-16 11:25:53 -04:00
rail
edc05da57d
Fix the wrong use of snippet_with_applicability
...
This includes a workaround of the issue #5822 ,
the cause of this little mistake.
2020-08-27 10:24:16 +12:00
Matthias Krüger
8a96b9cdfe
write.rs: don't clone TokenStream
2020-08-12 14:35:31 +02:00
JarredAllen
6ce981225b
Clean existing lint code to match new lint
2020-07-03 16:51:44 -07:00
JarredAllen
5150277a4f
Used clippy to clean itself
2020-07-03 16:50:45 -07:00
flip1995
1a8a69d012
Merge remote-tracking branch 'upstream/master' into rustup
2020-06-07 02:17:49 +02:00
bors
b059c0a2e6
Auto merge of #72927 - petrochenkov:rustc, r=Mark-Simulacrum
...
Rename all remaining compiler crates to use the `rustc_foo` pattern
libarena -> librustc_arena
libfmt_macros -> librustc_parse_format
libgraphviz -> librustc_graphviz
libserialize -> librustc_serialize
Closes https://github.com/rust-lang/rust/issues/71177 in particular.
2020-06-06 09:00:51 +00:00
Mark Rousskov
0c470b3339
Bump to 1.46
2020-06-03 15:27:51 -04:00
Vadim Petrochenkov
2b79413491
Rename the crates in source code
2020-06-02 20:42:54 +03:00
ThibsG
9893254dff
Add more corrected code for doc
2020-06-01 10:39:52 +02:00
flip1995
37381d33a4
Fix sync fallout
2020-05-31 14:05:57 +02:00
Amanieu d'Antras
d25b25610b
Handle InlineAsm in clippy
2020-05-18 14:41:33 +01:00
Julian Wollersberger
ff9a9ed37c
Replace some usages of the old unescape_
functions in AST, clippy and tests.
2020-05-13 10:05:04 +02:00
Matthias Krüger
b8effecee1
rustup https://github.com/rust-lang/rust/pull/69838
2020-03-17 10:18:22 +01:00
Matthias Krüger
4d8ed5a842
rustup https://github.com/rust-lang/rust/pull/69589/
2020-03-15 18:23:43 +01:00
flip1995
a628733ade
Don't lint debug formatting in debug impl
2020-03-03 10:48:08 +01:00
Yuki Okushi
78dc48ea50
Rustup to rust-lang/rust#69579
2020-03-01 23:32:49 +09:00
Yuki Okushi
4253aa7137
Rustup to rust-lang/rust#69592
2020-03-01 12:23:33 +09:00
flip1995
8472ecda0f
Fix fallout
2020-02-21 11:14:18 +01:00
Yuki Okushi
ce1c6b285d
Rustup to rust-lang/rust#68045
2020-01-13 21:55:57 +09:00
Yuki Okushi
39947992b5
Rustup to rust-lang/rust#67806
2020-01-11 21:50:00 +09:00
Philipp Hansch
c5178e82b4
Rustup to https://github.com/rust-lang/rust/pull/67853
...
Specifically caused by https://github.com/rust-lang/rust/pull/67786
2020-01-04 11:30:03 +01:00
Yuki Okushi
9086b17e14
Rustup to rust-lang/rust#67707
2019-12-31 09:17:56 +09:00
Lzu Tao
652666b288
rustup "Add span information to ExprKind::Assign
"
2019-12-24 11:25:24 +07:00
Matthias Krüger
98e433d70d
Rustup to rust-lang/rust#66878
2019-12-04 01:34:01 +01:00
flip1995
f6a75f17f6
Rustup to rust-lang/rust#66935
2019-12-03 18:37:06 +01:00