diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/include-macros/same-file-in-two-crates.rs | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/include-macros/same-file-in-two-crates.rs')
-rw-r--r-- | src/test/ui/include-macros/same-file-in-two-crates.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/include-macros/same-file-in-two-crates.rs b/src/test/ui/include-macros/same-file-in-two-crates.rs deleted file mode 100644 index f49efa2cf..000000000 --- a/src/test/ui/include-macros/same-file-in-two-crates.rs +++ /dev/null @@ -1,21 +0,0 @@ -// This test makes sure that the compiler can handle the same source file to be -// part of the local crate *and* an upstream crate. This can happen, for example, -// when there is some auto-generated code that is part of both a library and an -// accompanying integration test. -// -// The test uses include!() to include a source file that is also part of -// an upstream crate. -// -// This is a regression test for https://github.com/rust-lang/rust/issues/85955. - -// check-pass -// compile-flags: --crate-type=rlib -// aux-build:same-file-in-two-crates-aux.rs -extern crate same_file_in_two_crates_aux; - -pub fn foo() -> u32 { - same_file_in_two_crates_aux::some_function() + - some_function() -} - -include!("./auxiliary/same-file-in-two-crates-aux.rs"); |