Remove unused emit_feature_warn function

This commit is contained in:
Brian Anderson 2015-06-17 11:31:43 -07:00
parent 10356458a7
commit 9b29cbe1ea

View File

@ -430,18 +430,6 @@ pub fn emit_feature_err(diag: &SpanHandler, feature: &str, span: Span, explain:
feature));
}
pub fn emit_feature_warn(diag: &SpanHandler, feature: &str, span: Span, explain: &str) {
diag.span_warn(span, explain);
// #23973: do not suggest `#![feature(...)]` if we are in beta/stable
if option_env!("CFG_DISABLE_UNSTABLE_FEATURES").is_some() { return; }
if diag.handler.can_emit_warnings {
diag.fileline_help(span, &format!("add #![feature({})] to the \
crate attributes to silence this warning",
feature));
}
}
pub const EXPLAIN_ASM: &'static str =
"inline assembly is not stable enough for use and is subject to change";