Skip to content

Commit 9b29cbe

Browse files
committed
Remove unused emit_feature_warn function
1 parent 1035645 commit 9b29cbe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -430,18 +430,6 @@ pub fn emit_feature_err(diag: &SpanHandler, feature: &str, span: Span, explain:
430430
feature));
431431
}
432432

433-
pub fn emit_feature_warn(diag: &SpanHandler, feature: &str, span: Span, explain: &str) {
434-
diag.span_warn(span, explain);
435-
436-
// #23973: do not suggest `#![feature(...)]` if we are in beta/stable
437-
if option_env!("CFG_DISABLE_UNSTABLE_FEATURES").is_some() { return; }
438-
if diag.handler.can_emit_warnings {
439-
diag.fileline_help(span, &format!("add #![feature({})] to the \
440-
crate attributes to silence this warning",
441-
feature));
442-
}
443-
}
444-
445433
pub const EXPLAIN_ASM: &'static str =
446434
"inline assembly is not stable enough for use and is subject to change";
447435

0 commit comments

Comments
 (0)