about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorPierre Tardy <pierre.tardy@renault.com>2025-08-06 16:18:25 +0200
committerPierre Tardy <pierre.tardy@renault.com>2025-08-10 15:50:40 +0200
commitbc14ad38a394df0e74eb6e204d75038a8cf6ef99 (patch)
tree6d3aa47b8ffa543877977955a696429cb9b227f8 /compiler/rustc_resolve/src
parentdc0bae1db725fbba8524f195f74f680995fd549e (diff)
downloadrust-bc14ad38a394df0e74eb6e204d75038a8cf6ef99.tar.gz
rust-bc14ad38a394df0e74eb6e204d75038a8cf6ef99.zip
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 reasonabily ensuring the unicity (with hashing of the stripped part)
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions