about summary refs log tree commit diff
path: root/clippy_lints/src/temporary_assignment.rs
AgeCommit message (Collapse)AuthorLines
2023-11-25Use absolute path for `declare_tool_lint` in `declare_clippy_lint`Alex Macleod-1/+1
2023-10-23Set existing doc-tests to `no_run`Alex Macleod-1/+1
2023-08-04Improve spans for indexing expressionsNilstrieb-1/+1
Indexing is similar to method calls in having an arbitrary left-hand-side and then something on the right, which is the main part of the expression. Method calls already have a span for that right part, but indexing does not. This means that long method chains that use indexing have really bad spans, especially when the indexing panics and that span in coverted into a panic location. This does the same thing as method calls for the AST and HIR, storing an extra span which is then put into the `fn_span` field in THIR.
2021-12-06Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyupflip1995-0/+1
2021-07-29Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyupflip1995-5/+5
2021-03-25Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyupflip1995-1/+2
2020-09-10Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' into clippyupflip1995-6/+3
2020-09-08Adjust Clippy for CONST_ITEM_MUTATION lintAaron Hill-3/+1
We no longer lint assignments to const item fields in the `temporary_assignment` lint, since this is now covered by the `CONST_ITEM_MUTATION` lint. Additionally, we `#![allow(const_item_mutation)]` in the `borrow_interior_mutable_const.rs` test. Clippy UI tests are run with `-D warnings`, which seems to cause builtin lints to prevent Clippy lints from running.
2020-07-14Merge commit '2ca58e7dda4a9eb142599638c59dc04d15961175' into clippyupflip1995-7/+1
2020-07-03Use 'tcx for references to AccessLevels wherever possible.Eduard-Mihai Burtescu-3/+3
2020-07-02rustc_lint: avoid using TypeckTables::empty for LateContext.Eduard-Mihai Burtescu-1/+1
2020-06-26rustc_lint: only query `typeck_tables_of` when a lint needs it.Eduard-Mihai Burtescu-1/+1
2020-02-18Clean up importsYuki Okushi-2/+1
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-1/+1
2020-01-11Rustup to rust-lang/rust#67806Yuki Okushi-3/+2
2020-01-07Rustup to rust-lang/rust#67886Yuki Okushi-2/+2
2019-12-27Rustup to rust-lang/rust#66936Yuki Okushi-2/+2
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-09-27Rustup to rust-lang/rust#64813flip1995-3/+3
2019-05-03Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03)Matthias Krüger-2/+2
2019-04-17Use lint pass macrosMatthew Kraai-14/+3
Fixes #3917.
2019-03-05move lint documentation into macro invocationsAndy Russell-12/+12
2019-01-27rustup https://github.com/rust-lang/rust/pull/57726Matthias Krüger-0/+4
2019-01-08Remove all copyright license headersPhilipp Hansch-9/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-30Move constant write checks to temporary_assignment lintKonrad Borowski-7/+17
They make more sense here
2018-12-29Remove crate:: prefixes from crate pathsKonrad Borowski-3/+3
This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix.
2018-11-27Run rustfmt on clippy_lintsflip1995-2/+1
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-15Reintroduce `extern crate` for non-Cargo dependencies.Eduard-Mihai Burtescu-3/+3
2018-08-29Switch to declare_tool_lint macroflip1995-1/+1
2018-07-19Remove import of rustcManish Goregaokar-0/+1
2018-07-16ExprKindcsmoe-4/+4
2018-05-30Run rustfixMateusz Mikuła-2/+2
2018-04-15Fix clippy errorMichael Wright-4/+3
2018-04-15Fix compilation for nightly 2018-04-15Michael Wright-2/+2
This only fixes compilation and the build. It's possible that the `author` and `inspector` lints are broken but there are no failing tests. Closes #2667
2018-03-28Categorize all the lints!Oliver Schneider-2/+2
2017-09-05Run nightly rustfmtOliver Schneider-5/+2
2016-12-20also run rustfmt on clippy-lintsOliver Schneider-1/+1
2016-12-07update to the rust-PR that unblocks clippyOliver Schneider-2/+2
2016-12-06rustup to rustc 1.15.0-dev (3b248a184 2016-12-05)Oliver Schneider-1/+1
2016-08-07Make the lint docstrings more consistent.Georg Brandl-4/+4
2016-07-16Improve docsmcarton-3/+8
2016-06-16round 1Oliver Schneider-3/+3
2016-05-27split clippy into lints, plugin and cargo-clippyOliver Schneider-0/+49