News for hackers. Stuff that matters.
Re:Bugs Rust Won't Catch by rendaw on Wednesday April 29, 2026 @12:25PM (#47950625)
I took parent's message to be asking why the standard library fs primitives don't use `at` functions under the hood, not that they wanted the `at` functions directly exposed.

> which Rust's stdlib chose not to expose

i.e. expose through things like `File::open()`.

Re:Bugs Rust Won't Catch by kibwen on Wednesday April 29, 2026 @03:13PM (#47952978)
> why the standard library fs primitives don't use `at` functions under the hood

In this case it wouldn't seem to make sense to use `at` functions to back the standard file opening interface that Rust presents, because it requires different parameters, so a different API would need to be designed. Someone above mentioned that such an API is being considered for inclusion in libstd in this issue: https://github.com/rust-lang/rust/issues/120426