When the rust compiler generates warnings or errors that refer to source code for the standard library, its messaging use the build time path, rather than the installed path. I think it's more useful for most users of rust to not have to mentally rename files to find the files in question. It also allows the compiler to read the source code and add parts of it to the error message. I've also submitted review D44547.
Thanks, I'll commit it with rust 1.78.0.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a1d35b12b4a41e25840e0f240eec81f448b1cfe commit 2a1d35b12b4a41e25840e0f240eec81f448b1cfe Author: Dan McGregor <dan.mcgregor@usask.ca> AuthorDate: 2024-03-31 12:01:50 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2024-05-13 11:03:21 +0000 lang/rust: remap debuginfo Prior to this update, when the rust compiler generates warnings or errors that refer to source code for the standard library, its messaging use the build time path, rather than the installed path. It's probably more useful for most users of rust to not have to mentally rename files to find the files in question. PR: 278133 Differential Revision: https://reviews.freebsd.org/D44547 lang/rust/Makefile | 1 + 1 file changed, 1 insertion(+)