From a1885cdba38a63448ceec02f951ddc0844d0ff38 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Mon, 13 May 2019 22:46:20 +0300 Subject: Restore the old behavior of the rustdoc keyword check + Fix rebase --- src/libsyntax_pos/symbol.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libsyntax_pos') diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index f9f0b097f7a..070bb1d8ef7 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -951,6 +951,11 @@ impl Symbol { fn is_unused_keyword_2018(self) -> bool { self >= kw::Async && self <= kw::Try } + + /// Used for sanity checking rustdoc keyword sections. + pub fn is_doc_keyword(self) -> bool { + self <= kw::Union + } } impl Ident { -- cgit 1.4.1-3-g733a5