rust/compiler/rustc_session
Jakub Beránek 30c967ddba
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
2025-08-15 16:03:58 +02:00
..
src Rollup merge of #145408 - Kobzol:deduplicate-search-paths, r=petrochenkov 2025-08-15 16:03:58 +02:00
Cargo.toml bump termize dep 2025-07-04 11:43:43 +03:00
messages.ftl move -Ctarget-feature handling into shared code 2025-06-19 09:44:01 +09:00