Bug 278133 - lang/rust: debug info should be remapped
Summary: lang/rust: debug info should be remapped
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Rust Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-02 16:11 UTC by Dan McGregor
Modified: 2024-05-13 11:04 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (rust)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan McGregor 2024-04-02 16:11:21 UTC
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.
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2024-04-03 07:14:38 UTC
Thanks, I'll commit it with rust 1.78.0.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-05-13 11:04:32 UTC
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(+)