Rollup merge of #146875 - Enselic:better-file-names, r=jieyouxu

tests/run-make/crate-loading: Rename source files for clarity

For rust-lang/rust#146874 I originally tried to extend the existing test **tests/run-make/crate-loading**. That didn't work out since adding a re-export of the entire crate significantly changes the emitted error messsage.

I did put some effort into making that test easier to understand however, by renaming its files. (Since I was confused myself at first.)  Let's save some time for future devs by doing just the renames.

Further cleanups are possible, but that will change the blessed output, so let's not do that right now.

r? ```@jieyouxu``` since you have the context of rust-lang/rust#146874
This commit is contained in:
Matthias Krüger 2025-09-23 18:13:56 +02:00 committed by GitHub
commit c71a2c4819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 6 deletions

View file

@ -6,12 +6,9 @@
use run_make_support::{diff, rust_lib_name, rustc};
fn main() {
rustc().input("multiple-dep-versions-1.rs").run();
rustc().input("multiple-dep-versions-2.rs").extra_filename("2").metadata("2").run();
rustc()
.input("multiple-dep-versions-3.rs")
.extern_("dependency", rust_lib_name("dependency2"))
.run();
rustc().input("dependency-1.rs").run();
rustc().input("dependency-2.rs").extra_filename("2").metadata("2").run();
rustc().input("dep-2-reexport.rs").extern_("dependency", rust_lib_name("dependency2")).run();
let out = rustc()
.input("multiple-dep-versions.rs")