Skip to content

Commit 84775ed

Browse files
committed
-C remark: fix incorrect warning about requiring "--debuginfo" instead of "-C debuginfo=n"
1 parent 56ac2c4 commit 84775ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/librustc/session/config.rs

+1-2
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)