-C remark: fix incorrect warning about requiring "--debuginfo" instead of "-C debuginfo=n"

This commit is contained in:
Matthias Krüger 2018-11-05 12:08:35 +01:00
parent 56ac2c4fc3
commit 84775edcc2

View File

@ -2202,8 +2202,7 @@ pub fn build_session_options_and_crate_config(
if !cg.remark.is_empty() && debuginfo == DebugInfo::None {
early_warn(
error_format,
"-C remark will not show source locations without \
--debuginfo",
"-C remark requires \"-C debuginfo=n\" to show source locations",
);
}