Skip to content

Commit 3682d31

Browse files
authored
Rollup merge of #55692 - matthiaskrgr:remark_debuginfo_hint, r=michaelwoerister
-C remark: fix incorrect warning about requiring "--debuginfo" instead of "-C debuginfo=n" Previously suggested "--debuginfo" does not actually work.
2 parents 8f93a3c + 84775ed commit 3682d31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/session/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,8 +2202,7 @@ pub fn build_session_options_and_crate_config(
22022202
if !cg.remark.is_empty() && debuginfo == DebugInfo::None {
22032203
early_warn(
22042204
error_format,
2205-
"-C remark will not show source locations without \
2206-
--debuginfo",
2205+
"-C remark requires \"-C debuginfo=n\" to show source locations",
22072206
);
22082207
}
22092208

0 commit comments

Comments
 (0)