Commit graph

3263 commits

Author SHA1 Message Date
Andre Bogus
76ca4dca85 unify checks into single visitor, fix block walk 2017-08-04 07:48:43 +02:00
Andre Bogus
3b7f3dc8e7 WIP: Find binding or assignment within outer loop 2017-08-03 22:11:58 +02:00
Pascal Hertleif
b3c90efcb4 Generate version index for docs domain index
Uses basically the same code as the lint docs page as I didn't want to
reinvent anything: A simple python script (inline in deploy script)
writes an array of versions to a JSON file, which gets turned into a
list of links using a bit of angular.js code.

Fixes #1917
2017-08-03 21:21:59 +02:00
Pascal Hertleif
0527dbaddf Update URL in rendered docs Github ribbon
[ci skip]
2017-08-03 21:21:59 +02:00
Martin Carton
75faed13b4 Merge pull request #1922 from rust-lang-nursery/compiletest_update
Update to latest compiletest version
2017-08-02 19:51:59 +02:00
Oliver Schneider
9b3ea4264f Update to latest compiletest version 2017-08-02 18:07:05 +02:00
Oliver Schneider
49b00ec440 Merge pull request #1919 from rust-lang-nursery/ui
Move all our tests back to ui tests
2017-08-02 18:03:35 +02:00
Oliver Schneider
b1eec6b402 Remove all references to clippy_tests 2017-08-02 17:24:07 +02:00
Oliver Schneider
70cc9509c1
Revert "Update contribution instructions to the new system"
This reverts commit 5ed2066dca.
2017-08-02 12:46:06 +02:00
Oliver Schneider
74c776585c Move all our tests back to ui tests 2017-08-01 17:54:21 +02:00
Oliver Schneider
5595027018 Merge pull request #1869 from rust-lang-nursery/new_lint
Lint authoring tool
2017-08-01 16:05:11 +02:00
Oliver Schneider
45bb3ec072 Produce backtrace on travis 2017-08-01 15:40:57 +02:00
Oliver Schneider
19a9441f85 Update to latest rustc diagnostic output 2017-08-01 13:11:48 +02:00
Oliver Schneider
6bdb597a9f Fix some more dogfood issues 2017-08-01 13:05:57 +02:00
Oliver Schneider
a5fe4bed0e
The lint doesn't improve perf (yet) 2017-08-01 12:55:53 +02:00
Oliver Schneider
7102442a4b
Use the authoring tool to create a new lint 2017-08-01 12:55:52 +02:00
Oliver Schneider
3a61b452a2
Create a lint authoring helper (generates matching code) 2017-08-01 12:55:52 +02:00
Oliver Schneider
86d6cec138 Fix the config regex for the wiki generator 2017-08-01 10:33:16 +02:00
Oliver Schneider
5864072eca Run rustfmt 2017-08-01 10:19:49 +02:00
Oliver Schneider
deed00a0a4
Bump the version 2017-08-01 10:19:18 +02:00
Oliver Schneider
c9d9619eed update_lints.sh has a different opinion on ordering things 2017-08-01 10:18:56 +02:00
Oliver Schneider
b4d70c9420 Merge pull request #1900 from jayhardee9/luckily_literals_love_lints
Add lints for digit grouping.
2017-08-01 10:15:29 +02:00
Oliver Schneider
9d8d2d87c3 More autoclippyification 2017-08-01 09:55:17 +02:00
Oliver Schneider
4fa6f83708 Clippy fixes itself 2017-08-01 09:45:36 +02:00
Oliver Schneider
a1c3870c4e Merge pull request #1915 from Frederick888/fix-1914
Try to fix #1914
2017-08-01 09:35:59 +02:00
Frederick Zhang
9539df06c6 use BindingAnnotation instead of BindingMode 2017-08-01 17:17:38 +10:00
Jay Hardee
9b78086ab3 Fix hints from misc_early 2017-07-31 20:20:27 -04:00
Jay Hardee
5dbdfc1836 Update stderr files. 2017-07-31 20:02:53 -04:00
Jay Hardee
500857c944 Merge remote-tracking branch 'upstream/master' into luckily_literals_love_lints 2017-07-31 19:17:42 -04:00
Jay Hardee
06fd8784d7 Loose ends and factor out consistency logic. 2017-07-31 19:06:51 -04:00
Jay Hardee
3b56965242 Use DigitInfo instead of get_digits(). 2017-07-31 19:06:51 -04:00
Jay Hardee
a6cb1189dd do_lint() shouldn't format warnings. 2017-07-31 19:06:51 -04:00
Jay Hardee
471b6811d8 Implement method for digit grouping suggestions 2017-07-31 19:06:51 -04:00
Jay Hardee
fbbd788799 Add some structs for cleaning up lint logic later.
DigitInfo for storing radix, type, digits of a literal.
WarningType for making warning messages consistent.
2017-07-31 19:06:50 -04:00
Jay Hardee
017b77ae05 rustfmt 2017-07-31 19:06:50 -04:00
Matt Kraai
937a0aa20a Update from upstream. 2017-07-31 19:06:23 -04:00
Oliver Schneider
f1fa1768a2 Merge pull request #1909 from Arnavion/fix-manifest-path
Canonicalize --manifest-path argument before comparing it to cargo metadata.
2017-07-31 22:42:17 +02:00
Oliver Schneider
dfbc8990eb Update .travis.yml 2017-07-31 13:10:04 +02:00
Oliver Schneider
41c96908cc
Bump the version 2017-07-31 12:38:29 +02:00
Oliver Schneider
9967e9aacc Update to latest master 2017-07-31 12:37:38 +02:00
Oliver Schneider
c518847c8a
Merge remote-tracking branch 'origin/master' 2017-07-31 09:19:25 +02:00
Arnavion
d3bdec216b Canonicalize --manifest-path argument before comparing it to cargo metadata.
Before this change, a relative path like `--manifest-path=./Cargo.toml` would
fail to find a matching package in the cargo metadata. With this change,
both the argument and the cargo metadata path are canonicalized before
comparison.
2017-07-28 15:22:31 -07:00
Oliver Schneider
398c688afa
Bump the version 2017-07-28 09:23:03 +02:00
Oliver Schneider
bac8b6f1de Rustup gets rid of false positives 2017-07-28 09:08:09 +02:00
Oliver Schneider
9c731e8237 Merge pull request #1896 from Arnavion/fix-workspace
Fix logic that determines closest parent crate when invoked from a subdirectory.
2017-07-27 15:21:09 +02:00
Oliver Schneider
065974c8ae Fix typo in previous commit 2017-07-27 13:37:21 +02:00
Oliver Schneider
34a3e9c157 Wrong placement of inner attribute in previous commit 2017-07-27 13:35:34 +02:00
Oliver Schneider
b4115fc245 Rustc doesn't generate expansion info for cfg! 2017-07-27 13:04:27 +02:00
Arnavion
db7a5c69f1 Fix logic that determines closest parent crate when invoked from a subdirectory.
The previous logic incorrectly matches the deepest child of the current
directory that is a crate.
2017-07-27 00:04:17 -07:00
Oliver Schneider
38680e8411
Bump the version 2017-07-24 16:29:47 +02:00