You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix ICE: attempted to remap an already remapped filename
This commit fixes an internal compiler error (ICE) that occurs when
rustdoc attempts to remap a filename that was already remapped. The
issue arose during macro expansion when the `--remap-path-prefix`
option was used.
Instead of panicking with "attempted to remap an already remapped
filename", we now handle already remapped filenames gracefully by
returning them as-is.
A test case has been added to verify this behavior.
Fixesrust-lang#138520
Signed-off-by: Charalampos Mitrodimas <charmitro@posteo.net>
0 commit comments