about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-08-15 16:03:58 +0200
committerGitHub <noreply@github.com>2025-08-15 16:03:58 +0200
commit30c967ddba14400003f3cac3112bcaa25a78ce7f (patch)
tree6fda2627fed7d69b7dc3564c25949a24084f332e /compiler/rustc_pattern_analysis/src
parent0734cbda19fcef3958ec6399683973538070fe1d (diff)
parentfd5b7373db2093be7e1c906d8f92627689cc1eed (diff)
downloadrust-30c967ddba14400003f3cac3112bcaa25a78ce7f.tar.gz
rust-30c967ddba14400003f3cac3112bcaa25a78ce7f.zip
Rollup merge of #145408 - Kobzol:deduplicate-search-paths, r=petrochenkov
Deduplicate -L search paths

For each -L passed to the compiler, we eagerly scan the whole directory. If it has a lot of files, that results in a lot of allocations. So it's needless to do this if some -L paths are actually duplicated (which can happen e.g. in the situation in the linked issue).

This PR both deduplicates the args, and also teaches rustdoc not to pass duplicated args to merged doctests.

Fixes: https://github.com/rust-lang/rust/issues/145375
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions