about summary refs log tree commit diff
path: root/clippy_lints/src/endian_bytes.rs
AgeCommit message (Collapse)AuthorLines
2025-02-06Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-1/+2
2025-02-02Convert two `rustc_middle::lint` functions to `Span` methods.Nicholas Nethercote-2/+1
`rustc_middle` is a huge crate and it's always good to move stuff out of it. There are lots of similar methods already on `Span`, so these two functions, `in_external_macro` and `is_from_async_await`, fit right in. The diff is big because `in_external_macro` is used a lot by clippy lints.
2024-12-29Move `format_push_string` and `format_collect` to pedanticSamuel Moelius-1/+2
2024-08-08Merge commit 'cb806113e0f83a8f9b47d35b453b676543bcc40e' into ↵Philipp Krones-49/+40
clippy-subtree-update
2024-08-03Migrating restriction lints to `span_lint_and_then` (a -> d)xFrednet-49/+40
2024-07-25Merge commit '37f4fbb92913586b73a35772efd00eccd1cbbe13' into ↵Philipp Krones-23/+16
clippy-subtree-update
2024-07-22Auto merge of #13065 - Jarcho:misc_small2, r=xFrednetbors-23/+16
Misc refactorings part 2 A couple of theses are a bit more involved. No behaviour changes included in this set. changelog: none
2024-07-11Merge commit 'b794b8e08c16517a941dc598bb1483e8e12a8592' into ↵Philipp Krones-2/+2
clippy-subtree-update
2024-07-07Refactor `endian_bytes`:Jason Newcomb-23/+16
* Merge code paths. * Check HIR tree before checking for macros.
2024-06-23Fix doc nitsJohn Arundel-2/+2
2024-05-30Merge commit 'c9139bd546d9cd69df817faeab62c5f9b1a51337' into ↵Philipp Krones-8/+7
clippy-subtree-update
2024-05-23For restriction lints, replace “Why is this bad?” with “Why restrict ↵Kevin Reid-8/+7
this?” The `restriction` group contains many lints which are not about necessarily “bad” things, but style choices — perhaps even style choices which contradict conventional Rust style — or are otherwise very situational. This results in silly wording like “Why is this bad? It isn't, but ...”, which I’ve seen confuse a newcomer at least once. To improve this situation, this commit replaces the “Why is this bad?” section heading with “Why restrict this?”, for most, but not all, restriction lints. I left alone the ones whose placement in the restriction group is more incidental. In order to make this make sense, I had to remove the “It isn't, but” texts from the contents of the sections. Sometimes further changes were needed, or there were obvious fixes to make, and I went ahead and made those changes without attempting to split them into another commit, even though many of them are not strictly necessary for the “Why restrict this?” project.
2024-04-01fix fallout from previous commity21-1/+1
2024-04-04Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into ↵Philipp Krones-1/+1
clippy-subtree-update
2023-12-01Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-syncPhilipp Krones-1/+1
2023-11-25Use absolute path for `declare_tool_lint` in `declare_clippy_lint`Alex Macleod-1/+1
2023-11-16Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyupPhilipp Krones-19/+15
2023-11-10Run `if-to-let-chain clippy*/**/*.rs`Alex Macleod-19/+15
https://github.com/Alexendoo/if-to-let-chain
2023-08-24Merge commit '080b587854a73f2a8cbaecff1884860a78e2ff37' into clippyupPhilipp Krones-3/+3
2023-08-18Update version attribute for 1.72 lintsxFrednet-3/+3
2023-07-17Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyupPhilipp Krones-2/+4
2023-07-13Add `imports_granularity = "Module"` to rustfmt.tomlAlex Macleod-2/+4
2023-07-02Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyupPhilipp Krones-0/+216
2023-06-03derive Copy/PartialEq for `Prefix`Centri3-11/+8
2023-06-02Update endian_bytes.rsCentri3-1/+1
2023-06-02use enum for `prefix` instead of `&str`Centri3-34/+27
2023-05-31don't allocate the namesCentri3-13/+35
2023-05-31unidiomatic `if_chain!`Centri3-3/+2
2023-05-31refine outputCentri3-9/+17
2023-05-31weird grammarCatherine-2/+2
2023-05-31implement `host_endian_bytes` and the other twoCentri3-75/+134
2023-05-31`to_xx_bytes` implemented, `from_xx_bytes` todoCentri3-0/+138
Mentioned in #10765