Skip to content

Rollup of 8 pull requests #134292

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

Merged
merged 26 commits into from
Dec 14, 2024
Merged
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8200c1e
rustdoc-search: fix mismatched path when parent re-exported twice
notriddle Dec 12, 2024
7880aba
crashes: more tests v2
matthiaskrgr Dec 12, 2024
65a54a7
Tweak multispan rendering
estebank Dec 11, 2024
49a22a4
Filter empty lines, comments and delimiters from previous to last mul…
estebank Dec 11, 2024
4c6d793
Only dist `llvm-objcopy` if llvm tools are enabled
cuviper Dec 13, 2024
65a609b
validate `--skip` and `--exclude` paths
onur-ozkan Dec 12, 2024
ead78fd
Remove jobserver from Session
bjorn3 Dec 12, 2024
981f625
Remove registered_lints field from Session
bjorn3 Dec 12, 2024
ea9e8c1
Explain why an untranslatable_diagnostic occurs
bjorn3 Dec 12, 2024
3198496
Make dependency_formats an FxIndexMap rather than a list of tuples
bjorn3 Dec 12, 2024
af530c4
Use a more precise span in placeholder_type_error_diag
krtab Dec 13, 2024
e17ca31
rustc_borrowck: Make suggest_ampmut() return type match its use
Enselic Dec 13, 2024
d7fa8ee
Add regression test for issue 127562
Enselic Dec 13, 2024
2d2c6f2
rustc_borrowck: Stop suggesting the invalid syntax `&mut raw const`
Enselic Dec 13, 2024
f6cb227
rustc_borrowck: Convert suggest_ampmut() 4-tuple to struct for readab…
Enselic Dec 13, 2024
98318c5
rustdoc-search: update test with now-shorter function path
notriddle Dec 13, 2024
ad82d9f
Fix miri tests
estebank Dec 12, 2024
9f1044e
Account for `///` when rendering multiline spans
estebank Dec 13, 2024
2846699
Rollup merge of #134181 - estebank:trim-render, r=oli-obk
matthiaskrgr Dec 14, 2024
6cf13b0
Rollup merge of #134209 - onur-ozkan:check-skip-paths, r=jieyouxu
matthiaskrgr Dec 14, 2024
5b95be6
Rollup merge of #134231 - notriddle:notriddle/mismatched-path, r=Guil…
matthiaskrgr Dec 14, 2024
e4f9084
Rollup merge of #134236 - matthiaskrgr:tests12122024, r=compiler-errors
matthiaskrgr Dec 14, 2024
a53a3cc
Rollup merge of #134240 - cuviper:dist-llvm-tools, r=jieyouxu
matthiaskrgr Dec 14, 2024
34e6075
Rollup merge of #134244 - Enselic:no-mut-hint-for-raw-ref, r=jieyouxu
matthiaskrgr Dec 14, 2024
87bbbcd
Rollup merge of #134251 - bjorn3:various_cleanups2, r=oli-obk
matthiaskrgr Dec 14, 2024
75e7789
Rollup merge of #134256 - krtab:suggestion_overlapping, r=petrochenkov
matthiaskrgr Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion src/bootstrap/src/core/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,31 @@ impl Config {

// Set flags.
config.paths = std::mem::take(&mut flags.paths);
config.skip = flags.skip.into_iter().chain(flags.exclude).collect();
config.skip = flags
.skip
.into_iter()
.chain(flags.exclude)
.map(|p| {
let p = if cfg!(windows) {
PathBuf::from(p.to_str().unwrap().replace('/', "\\"))
} else {
p
};

// Jump to top-level project path to support passing paths
// from sub directories.
let top_level_path = config.src.join(&p);
if !config.src.join(&top_level_path).exists() {
eprintln!("WARNING: '{}' does not exist.", top_level_path.display());
}

// Never return top-level path here as it would break `--skip`
// logic on rustc's internal test framework which is utilized
// by compiletest.
p
})
.collect();

config.include_default_paths = flags.include_default_paths;
config.rustc_error_format = flags.rustc_error_format;
config.json_output = flags.json_output;
Expand Down