-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc reads directory incorrectly on BSD #12460
Labels
A-parser
Area: The parsing of Rust source code to an AST
Comments
cc #12304 |
brson
added a commit
to brson/rust
that referenced
this issue
Feb 25, 2014
Broken on BSD. rust-lang#12460
brson
added a commit
to brson/rust
that referenced
this issue
Mar 22, 2014
Broken on BSD. rust-lang#12460
alexcrichton
pushed a commit
to alexcrichton/rust
that referenced
this issue
Apr 5, 2014
Broken on BSD. rust-lang#12460
alexcrichton
pushed a commit
to alexcrichton/rust
that referenced
this issue
Apr 6, 2014
Broken on BSD. rust-lang#12460
nodakai
added a commit
to nodakai/rust
that referenced
this issue
Dec 3, 2014
On *BSD systems, we can open(2) a directory and directly read(2) from it due to an old tradition. We should avoid doing so by explicitly calling fstat(2) to check the type of the opened file. Opening a directory as a module file can't always be avoided. Even when there's no "path" attribute trick involved, there can always be a *directory* named "my_module.rs". Fix rust-lang#12460 Signed-off-by: NODA, Kai <nodakai@gmail.com>
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 25, 2022
minor: Reduce move-guard trigger range
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jun 27, 2024
…xendoo Avoid emitting `assigning_clones` when cloned data borrows from the place to clone into Fixes rust-lang#12444 Fixes rust-lang#12460 Fixes rust-lang#12749 Fixes rust-lang#12757 Fixes rust-lang#12929 I think the documentation for the function should describe what- and how this is fixing the issues well. It avoids emitting a warning when the data being cloned borrows from the place to clone into, which is information that we can get from `PossibleBorrowerMap`. Unfortunately, it is a tiny bit tedious to match on the MIR like that and I'm not sure if this is possibly relying a bit too much on the exact MIR lowering for assignments. Things left to do: - [x] Handle place projections (or verify that they work as expected) - [x] Handle non-`Drop` types changelog: [`assigning_clones`]: avoid warning when the suggestion would lead to a borrow-check error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the BSD bot, this test makes rustc try to open a directory as a module. On most platforms this results in an 'illegal operation on a directory error' (from libuv), but on BSD rustc succeeds at opening the directory and reads ... something that isn't UTF8.
I think there are two issues here:
The text was updated successfully, but these errors were encountered: