forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#106812 - oli-obk:output_filenames, r=petroche…
…nkov make `output_filenames` a real query part of rust-lang#105462 This may be a perf regression and is not obviously the right way forward. We may store this information in the resolver after freezing it for example.
- Loading branch information
Showing
16 changed files
with
119 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
include ../../run-make-fulldeps/tools.mk | ||
|
||
all: | ||
$(RUSTC) main.rs -o main.rs 2> $(TMPDIR)/file.stderr || echo "failed successfully" | ||
$(RUSTC) main.rs -o . 2> $(TMPDIR)/folder.stderr || echo "failed successfully" | ||
|
||
ifdef RUSTC_BLESS_TEST | ||
cp "$(TMPDIR)"/file.stderr file.stderr | ||
cp "$(TMPDIR)"/folder.stderr folder.stderr | ||
else | ||
$(DIFF) file.stderr "$(TMPDIR)"/file.stderr | ||
$(DIFF) folder.stderr "$(TMPDIR)"/folder.stderr | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
warning: ignoring --out-dir flag due to -o flag | ||
|
||
error: the input file "main.rs" would be overwritten by the generated executable | ||
|
||
error: aborting due to previous error; 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
warning: ignoring --out-dir flag due to -o flag | ||
|
||
error: the generated executable for the input file "main.rs" conflicts with the existing directory "." | ||
|
||
error: aborting due to previous error; 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
warning: ignoring --out-dir flag due to -o flag | ||
|
||
error: the input file "main.rs" would be overwritten by the generated executable | ||
|
||
error: aborting due to previous error; 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Issue #66530: We would ICE if someone compiled with `-o /dev/null`, | ||
// because we would try to generate auxiliary files in `/dev/` (which | ||
// at least the OS X file system rejects). | ||
// | ||
// An attempt to `-o` into a directory we cannot write into should indeed | ||
// be an error; but not an ICE. | ||
// | ||
// However, some folks run tests as root, which can write `/dev/` and end | ||
// up clobbering `/dev/null`. Instead we'll use a non-existent path, which | ||
// also used to ICE, but even root can't magically write there. | ||
|
||
// compile-flags: -Z temps-dir=/does-not-exist/output | ||
|
||
// The error-pattern check occurs *before* normalization, and the error patterns | ||
// are wildly different between build environments. So this is a cop-out (and we | ||
// rely on the checking of the normalized stderr output as our actual | ||
// "verification" of the diagnostic). | ||
|
||
// error-pattern: error | ||
|
||
// On Mac OS X, we get an error like the below | ||
// normalize-stderr-test "failed to write bytecode to /does-not-exist/output.non_ice_error_on_worker_io_fail.*" -> "io error modifying /does-not-exist/" | ||
|
||
// On Linux, we get an error like the below | ||
// normalize-stderr-test "couldn't create a temp dir.*" -> "io error modifying /does-not-exist/" | ||
|
||
// ignore-windows - this is a unix-specific test | ||
// ignore-emscripten - the file-system issues do not replicate here | ||
// ignore-wasm - the file-system issues do not replicate here | ||
// ignore-arm - the file-system issues do not replicate here, at least on armhf-gnu | ||
|
||
#![crate_type = "lib"] | ||
#![cfg_attr(not(feature = "std"), no_std)] | ||
pub mod task { | ||
pub mod __internal { | ||
use crate::task::Waker; | ||
} | ||
pub use core::task::Waker; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: failed to find or create the directory specified by `--temps-dir` | ||
|
||
error: aborting due to previous error | ||
|
File renamed without changes.
File renamed without changes.