Page MenuHomeFreeBSD

rust: remap debuginfo
ClosedPublic

Authored by dan.mcgregor_usask.ca on Mar 28 2024, 4:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 20, 5:02 PM
Unknown Object (File)
Sun, May 19, 5:58 AM
Unknown Object (File)
Fri, May 10, 12:35 AM
Unknown Object (File)
Mon, May 6, 1:38 PM
Unknown Object (File)
Sat, May 4, 1:24 PM
Unknown Object (File)
Sun, Apr 28, 8:48 PM
Unknown Object (File)
Fri, Apr 26, 4:33 AM
Unknown Object (File)
Apr 24 2024, 11:44 AM
Subscribers

Details

Summary

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 more useful for most users of rust to not have to
mentally rename files to find the files in question.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

A bit more explanation, this is the old output:

note: tuple variant defined here
   --> /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/library/core/src/result.rs:506:5
help: you can convert an `i64` to a `u64` and panic if the converted value doesn't fit

And the new output for the same error:

note: tuple variant defined here
   --> /usr/local/lib/rustlib/src/rust/library/core/src/result.rs:506:5
    |
506 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     ^^
help: you can convert an `i64` to a `u64` and panic if the converted value doesn't fit

Notice that the new error message even includes context from the library source file.

This revision was not accepted when it landed; it landed in state Needs Review.Mon, May 13, 11:04 AM
This revision was automatically updated to reflect the committed changes.