about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-09 21:23:38 +0000
committerbors <bors@rust-lang.org>2024-03-09 21:23:38 +0000
commit7ee75f896fd2b16cc06b0557e94e19a569c51701 (patch)
tree9496558d90196ecc75e659dd6a9998ee89c22aef /compiler/rustc_codegen_gcc/example/std_example.rs
parentd8a9068e8369a6ef454581b5f07d2caadfc62109 (diff)
parentb44ab661568d3fc6070fe9c6e3ff87dc7884ceb2 (diff)
downloadrust-7ee75f896fd2b16cc06b0557e94e19a569c51701.tar.gz
rust-7ee75f896fd2b16cc06b0557e94e19a569c51701.zip
Auto merge of #12447 - MarcusGrass:mg/fix-12438-regression, r=y21
Fix #12438 std_instead_of_core regression

Fixes #12438.

Boy-scouting removed two paths that checks for duplication since I thought they were unused. However, that's just because I didn't spot it in the diff.

I installed [difftastic](https://github.com/Wilfred/difftastic) and ran it on the old one:

![image](https://github.com/rust-lang/rust-clippy/assets/34198073/5c51276c-055a-49a3-9425-6f7da0590fb0)

And the new one (fixed):

![image](https://github.com/rust-lang/rust-clippy/assets/34198073/6e10f29c-6d6b-4f64-893f-de526424f1cd)

New one (stderr):
![image](https://github.com/rust-lang/rust-clippy/assets/34198073/c4c07776-ee0f-47ba-996f-6b632de47c81)

Good teachings for the future when inspecting diffs with a lot of line changes, should've thought of that before, sorry for the trouble!

changelog: [`std_instead_of_core`] Fix false positive for crates that are in `std` but not `core`
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions