RFC 3127: path sanitisation changes
Meeting proposal info
- Title: Discuss RFC 3127
- Type: technical
Summary
Discuss https://github.com/rust-lang/rfcs/pull/3127
From https://github.com/rust-lang/rfcs/pull/3127#issuecomment-1112754808 :
A summary of recent changes:
Instead of letting Cargo decide whether or not to sanitise debuginfo based on
-C split-debuginfosetting (which necessitated Cargo feeding different arguments torustcdepending on that codegen option), explicit scopesunsplit-debuginfoandsplit-debuginfoare now created to target only embedded and split debuginfo respectively.unsplit-debuginfodoes nothing when the debuginfo is split, andsplit-debuginfodoes nothing when the debuginfo is unsplit.Instead of numbers, the value of
trim-pathsis now descriptive words (or list of words) that is passed through directly to--remap-path-scopes. This is achieved by extending--remap-path-scopeto take in aliases such asobject=macro,unsplit-debuginfo,split-debuginfo-file(default for release profiles). Note that this does not maketrim-pathsa simple pass through torustclike most other profile options, because Cargo needs to generate and emit the actual path mappings via--remap-path-prefixwhentrim-pathsis notnone.Since most of the implementation complexities will be in rustc and not Cargo, I really want to hear what @rust-lang/compiler thinks about this (I know you guys are busy 😅)
About this issue
This issue corresponds to a meeting proposal for the compiler team steering meeting. It corresponds to a possible topic of discussion. You can read more about the steering meeting procedure here.
Comment policy
These issues are meant to be used as an "announcements channel" regarding the proposal, and not as a place to discuss the technical details. Feel free to subscribe to updates. We'll post comments when reviewing the proposal in meetings or making a scheduling decision. In the meantime, if you have questions or ideas, ping the proposers on Zulip (or elsewhere).
Scheduled for ~~2022-06-10~~ 2022-06-17
https://calendar.google.com/event?action=TEMPLATE&tmeid=Nm8xbGtqbHBzMjdpcTRjcHAybmw4a3Y0ZjEgNnU1cnJ0Y2U2bHJ0djA3cGZpM2RhbWdqdXNAZw&tmsrc=6u5rrtce6lrtv07pfi3damgjus%40group.calendar.google.com
We had the meeting on 2022-07-17
We discussed this doc: https://github.com/rust-lang/rfcs/blob/6e45014b20aac5c29ae34a41ffce8c768814fd60/text/3127-trim-paths.md
using this hackmd to list questions/topics: https://hackmd.io/Ha2Ird9JSBKAToxFiBbATQ
The public zulip archive serves as the record for the meeting: https://rust-lang.zulipchat.com/#narrow/stream/238009-t-compiler.2Fmeetings/topic/.5Bsteering.20meeting.5D.202022-06-17.20compiler-team.23516.3A.20sanitize/near/286493879