From 9b29cbe1ea94d4420d676ad43fddb9d8e346444b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 17 Jun 2015 11:31:43 -0700 Subject: Remove unused emit_feature_warn function --- src/libsyntax/feature_gate.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index ea135c7a642..0b9978f839d 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -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"; -- cgit 1.4.1-3-g733a5