about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-08-15 16:16:34 +1000
committerGitHub <noreply@github.com>2025-08-15 16:16:34 +1000
commit98bf7f93d46a103398c42d17e7d48818102d7bd8 (patch)
tree7c278737b3c89d19ab795fa22b271b9ee4a5243a /compiler/rustc_resolve/src
parent60cb5502c14662f7a2bf95f5f511821ba6eaf9da (diff)
parentbc14ad38a394df0e74eb6e204d75038a8cf6ef99 (diff)
downloadrust-98bf7f93d46a103398c42d17e7d48818102d7bd8.tar.gz
rust-98bf7f93d46a103398c42d17e7d48818102d7bd8.zip
Rollup merge of #145005 - tardyp:lto_big_filesize, r=bjorn3
strip prefix of temporary file names when it exceeds filesystem name length limit

When doing lto, rustc generates filenames that are concatenating many information.

In the case of this testcase, it is concatenating crate name and rust file name, plus some hash, and the extension. In some other cases it will concatenate even more information reducing the maximum effective crate name to about 110 chars on linux filesystems where filename max length is 255

This commit is ensuring that the temporary file names are limited in size, while still reasonably ensuring the unicity (with hashing of the stripped part)

Fix: rust-lang/rust#49914
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions