Rollup merge of #138556 - charmitro:already-remapped-filename, r=GuillaumeGomez,Urgau

Fix ICE: attempted to remap an already remapped filename

This commit fixes an internal compiler error (ICE) that occurs when
rustdoc attempts to process macros with a remapped filename. The issue
arose during macro expansion when the `--remap-path-prefix` option was
used.

Instead of passing remapped filenames through, which would trigger the
"attempted to remap an already remapped filename" panic, we now
extract the original local path from remapped filenames before
processing them.

A test case has been added to verify this behavior.

Fixes #138520
This commit is contained in:
Matthias Krüger 2025-03-17 22:49:07 +01:00 committed by GitHub
commit 5acc65c720
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available