We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4809d0 commit d0d1c60Copy full SHA for d0d1c60
src/librustc_session/parse.rs
@@ -74,18 +74,6 @@ pub enum GateStrength {
74
75
/// Construct a diagnostic for a language feature error due to the given `span`.
76
/// The `feature`'s `Symbol` is the one you used in `active.rs` and `rustc_span::symbols`.
77
-///
78
-/// Example usage:
79
80
-/// ```ignore
81
-/// feature_err(
82
-/// parse_sess,
83
-/// sym::stmt_expr_attributes,
84
-/// attr.span,
85
-/// "attributes on expressions are unstable",
86
-/// )
87
-/// .emit();
88
-/// ```
89
pub fn feature_err<'a>(
90
sess: &'a ParseSess,
91
feature: Symbol,
0 commit comments