File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use rustc_data_structures::fx::FxIndexMap;
1515use rustc_lexer:: { Cursor , FrontmatterAllowed , LiteralKind , TokenKind } ;
1616use rustc_span:: BytePos ;
1717use rustc_span:: edition:: Edition ;
18- use rustc_span:: symbol:: Symbol ;
18+ use rustc_span:: symbol:: { Symbol , kw } ;
1919
2020use super :: format;
2121use crate :: clean:: PrimitiveType ;
@@ -1333,7 +1333,7 @@ impl<'src> Classifier<'src> {
13331333
13341334fn is_keyword ( symbol : Symbol ) -> bool {
13351335 // FIXME(#148221): Don't hard-code the edition. The classifier should take it as an argument.
1336- symbol. is_reserved ( || Edition :: Edition2024 )
1336+ symbol != kw :: Underscore && symbol . is_reserved ( || Edition :: Edition2024 )
13371337}
13381338
13391339fn generate_link_to_def (
You can’t perform that action at this time.
0 commit comments