about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-29 21:08:12 +0100
committerGitHub <noreply@github.com>2025-03-29 21:08:12 +0100
commitfb6d10e13b741ecc15ce642d4e1609ca3ad1ba3b (patch)
tree76eef34b8cf879e4b7e61606a0efce51c085eacf /compiler/rustc_codegen_llvm/src/builder.rs
parent2b0c2f7904ea460e471f6b0e0f7e2cf6f14e7186 (diff)
parent89c9c21b06c8661242b0545f690ac3e716327ac6 (diff)
downloadrust-fb6d10e13b741ecc15ce642d4e1609ca3ad1ba3b.tar.gz
rust-fb6d10e13b741ecc15ce642d4e1609ca3ad1ba3b.zip
Rollup merge of #138832 - ChrisDenton:with_native_path, r=joboet
Start using `with_native_path` in `std::sys::fs`

Ideally, each platform should use their own native path type internally. This will, for example, allow passing a `CStr` directly to `std::fs::File::open` and therefore avoid the need for allocating a new null-terminated C string.

However, doing that for every function and platform all at once makes for a large PR that is way too prone to breaking. So this PR does some minimal refactoring which should help progress towards that goal. The changes are Unix-only and even then I avoided functions that require more changes so that this PR is just moving things around.

r? joboet
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions