Uh oh!
There was an error while loading. Please reload this page.
Directly add extension instead of using Path::with_extension - #125406
Conversation
rustbot
commented
May 22, 2024
r? @Nadrieril rustbot has assigned @Nadrieril. Use |
This comment has been minimized.
This comment has been minimized.
70d39cd to
87b77a2CompareNadrieril
commented
May 22, 2024
Good spot! @bors r+ rollup |
bors
commented
May 22, 2024
…Nadrieril Directly add extension instead of using `Path::with_extension` `Path::with_extension` has a nice footgun when the original path doesn't contain an extension: Anything after the last dot gets removed.
…Nadrieril Directly add extension instead of using `Path::with_extension` `Path::with_extension` has a nice footgun when the original path doesn't contain an extension: Anything after the last dot gets removed.
Rollup of 7 pull requests Successful merges: - rust-lang#122665 (Add some tests for public-private dependencies.) - rust-lang#125210 (Cleanup: Fix up some diagnostics) - rust-lang#125316 (Tweak `Spacing` use) - rust-lang#125401 (Migrate `run-make/rustdoc-scrape-examples-macros` to `rmake.rs`) - rust-lang#125406 (Directly add extension instead of using `Path::with_extension`) - rust-lang#125409 (Rename `FrameworkOnlyWindows` to `RawDylibOnlyWindows`) - rust-lang#125416 (Use correct param-env in `MissingCopyImplementations`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 7 pull requests Successful merges: - rust-lang#122665 (Add some tests for public-private dependencies.) - rust-lang#125210 (Cleanup: Fix up some diagnostics) - rust-lang#125316 (Tweak `Spacing` use) - rust-lang#125401 (Migrate `run-make/rustdoc-scrape-examples-macros` to `rmake.rs`) - rust-lang#125406 (Directly add extension instead of using `Path::with_extension`) - rust-lang#125409 (Rename `FrameworkOnlyWindows` to `RawDylibOnlyWindows`) - rust-lang#125416 (Use correct param-env in `MissingCopyImplementations`) r? `@ghost` `@rustbot` modify labels: rollup
matthiaskrgr
commented
May 23, 2024
@bors rollup=iffy |
bors
commented
May 23, 2024
…drieril Directly add extension instead of using `Path::with_extension` `Path::with_extension` has a nice footgun when the original path doesn't contain an extension: Anything after the last dot gets removed.
This comment has been minimized.
This comment has been minimized.
bors
commented
May 23, 2024
💔 Test failed - checks-actions |
87b77a2 to
0a3eceaComparetbu-
commented
May 24, 2024
Interesting. This was apparently already hit by the existing code, because the added suffix just got dropped entirely. ^^ |
Nadrieril
commented
May 24, 2024
Do you think that might have been intentional? |
tbu-
commented
May 24, 2024
I don't think so. There's no point in adding a suffix that is immediately removed again. The |
Nadrieril
commented
May 29, 2024
Alright, let's try again @bors r+ |
bors
commented
May 29, 2024
bors
commented
May 29, 2024
…drieril Directly add extension instead of using `Path::with_extension` `Path::with_extension` has a nice footgun when the original path doesn't contain an extension: Anything after the last dot gets removed.
This comment has been minimized.
This comment has been minimized.
bors
commented
May 29, 2024
💔 Test failed - checks-actions |
fmease
commented
May 30, 2024
sync @bors r- |
Nadrieril
commented
Jun 1, 2024
The test failure is due to formatting, I'm surprised that tidy didn't catch it. Anyway, please run |
`Path::with_extension` has a nice footgun when the original path doesn't contain an extension: Anything after the last dot gets removed.
0a3ecea to
f7c51a2Comparetbu-
commented
Jun 4, 2024
Autoformatted. @rustbot ready |
Nadrieril
commented
Jun 5, 2024
@bors r+ |
bors
commented
Jun 5, 2024
bors
commented
Jun 6, 2024
bors
commented
Jun 6, 2024
☀️ Test successful - checks-actions |
rust-timer
commented
Jun 6, 2024
Finished benchmarking commit (67caf52): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 3.6%, secondary 4.4%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 672.761s -> 670.655s (-0.31%) |
Path::with_extensionhas a nice footgun when the original path doesn't contain an extension: Anything after the last dot gets removed.