about summary refs log tree commit diff
path: root/src/driver.rs
AgeCommit message (Collapse)AuthorLines
2020-01-09Rustup to rust-lang/rust#68024Yuki Okushi-1/+0
2019-12-24do minor cleanupsLzu Tao-40/+29
* ToString and AsRef are in prelude, no need to import them
2019-12-16Fix clippy build failureKrishna Veera Reddy-1/+0
Clippy build fails because the feature `result_map_or` has been stabilized in v1.41.0 but we still have an explicit feature attribute for it.
2019-11-29Feed the dogPhilipp Hansch-1/+1
2019-11-29Update custom ICE function with latest rustcPhilipp Hansch-1/+1
2019-11-29Use Clippy version in ICE messagePhilipp Hansch-1/+3
2019-11-29Add custom ICE message that points to Clippy repoPhilipp Hansch-1/+62
This utilizes https://github.com/rust-lang/rust/pull/60584 by setting our own `panic_hook` and pointing to our own issue tracker instead of the rustc issue tracker. This also adds a new internal lint to test the ICE message. **Potential downsides** * This essentially copies rustc's `report_ice` function as `report_clippy_ice`. I think that's how it's meant to be implemented, but maybe @jonas-schievink could have a look as well =) The downside of more-or-less copying this function is that we have to maintain it as well now. The original function can be found [here][original]. * `driver` now depends directly on `rustc` and `rustc_errors` Closes #2734 [original]: https://github.com/rust-lang/rust/blob/59367b074f1523353dddefa678ffe3cac9fd4e50/src/librustc_driver/lib.rs#L1185
2019-11-28Don't error on clippy.toml of dependenciesflip1995-3/+2
2019-11-28make use of Result::map_orLzu Tao-1/+2
2019-11-23Add comment for mir_opt_level=0flip1995-0/+4
2019-11-22Set mir_opt_level=0flip1995-0/+2
This introduces some FNs. But a building Clippy is more important for now
2019-11-13display help on empty command line argumentsMikhail Babenko-2/+2
2019-10-24Update clippy for latest rustc changesMark Rousskov-44/+13
Specifically, this revises the clippy integration to utilize a new callback to register its lints, as the prior editing of lint store in Session is no longer possible.
2019-09-16Changes to catch_fatal_errors in rustc driverJason Olson-1/+2
A [recent PR](https://github.com/rust-lang/rust/pull/60584/files#diff-707a0eda6b2f1a0537abc3d23133748cL1151) changed the function name from `report_ices_to_stderr_if_any` to `catch_fatal_errors`. This PR changes to using the new function name.
2019-08-19Import rustc_plugin from its new locationSimon Sapin-4/+2
Depends on https://github.com/rust-lang/rust/pull/62727
2019-07-19rustup https://github.com/rust-lang/rust/pull/62679/Matthias Krüger-2/+2
2019-07-15Auto merge of #4273 - mikerite:deny-warnings, r=flip1995bors-0/+1
Deny warnings in CI changelog: none
2019-07-15Deny warnings in CIMichael Wright-0/+1
2019-07-13Build sys_root in driver with PathBuf instead of Stringflip1995-6/+14
2019-06-12minor fixJane Lusby-1/+1
2019-06-12make it pass dogfoodJane Lusby-14/+15
2019-06-12run rustfmtJane Lusby-1/+6
2019-06-12fix padding and put clippy someplacesJane Lusby-2/+7
2019-06-12show default lint levelsJane Lusby-25/+12
2019-06-12group printingJane Lusby-37/+48
2019-06-12prelim arg parseJane Lusby-21/+135
2019-06-12initial commit for help improvements on clippy-driverJane Lusby-0/+36
2019-05-01clippy-driver: use rustc_tools_util to get version info.Matthias Krüger-5/+4
This will add git hash information to `clippy-driver -V` output.
2019-04-01rustup 41316f0449025394fdca6606d3fdb3b8f37a9872Matthias Krüger-1/+1
2019-04-01Updated source to match with recent rustc `master` toolchain changesFélix Fischer-1/+1
2019-03-12Remove some unused features and `error-pattern`sPhilipp Hansch-3/+0
2019-03-10Various cosmetic improvements.Alexander Regueiro-1/+1
2019-03-10rustfmtJohn Kåre Alsaker-12/+15
2019-03-10Use the new rustc interfaceJohn Kåre Alsaker-55/+61
2019-02-26Remove `#[feature(try_from)]`Michael Wright-1/+0
`try_from` is now stable.
2019-02-10removing redundant closures in the whole projectGrzegorz-2/+2
2019-02-02clippy-driver: if --sysroot is specified on the command line, use thatJeremy Fitzhardinge-4/+15
If the user explicitly sets sysroot on the command line, then use that value. Issue #3663
2019-02-02clippy-driver: more robust test to see if we're clippy-enabledJeremy Fitzhardinge-1/+41
Rather than looking for a fixed --emit arg set, just check to see if we're emitting metadata at all. This makes it more robust to being invoked by tools other than cargo (or if cargo changes its invocation). Issue #3663
2019-02-01Adding lint for too many lines.Araam Borhanian-0/+1
2019-01-27rustup https://github.com/rust-lang/rust/pull/57726Matthias Krüger-1/+1
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-19Auto merge of #3546 - matthiaskrgr:fix_install, r=oli-obkbors-6/+38
Revert "Merge pull request #3257 from o01eg/remove-sysroot" This reverts commit 041c49c1ed11b016d6ab9379643bb1da2adf5bfe, reversing changes made to 1df5766cbb559aab0ad5c2296d8b768182b5186c. The PR broke running a cargo-install'd clippy. The installed clippy would not be able to find a crate for std. Fixes #3523 Reopens #2874
2018-12-17Move renaming to the right placeflip1995-0/+1
2018-12-14Revert "Merge pull request #3257 from o01eg/remove-sysroot"Matthias Krüger-6/+38
This reverts commit 041c49c1ed11b016d6ab9379643bb1da2adf5bfe, reversing changes made to 1df5766cbb559aab0ad5c2296d8b768182b5186c.
2018-12-06Don't try to determine sysroot. rustc_driver will use default value.O01eg-38/+6
2018-11-27Run rustfmt on srcflip1995-119/+119
2018-11-17remove unused allow() attributes, NFCMatthias Krüger-1/+0
2018-10-11Remove now-useless `allow(unknown_lints)`Oliver Scherer-1/+1
2018-10-11Stabilize tool lintsOliver Scherer-1/+1
2018-10-08Fix cast_possible_truncation warningsDevon Hollowood-1/+3