diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-13 22:46:20 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-22 20:20:12 +0300 |
| commit | a1885cdba38a63448ceec02f951ddc0844d0ff38 (patch) | |
| tree | 8c45eb2a7169a49b8a6e66fc3193c8d99ffc7632 /src/librustc_plugin | |
| parent | c389a39c9728d5c912a9ce1bc4c04eb1a3f31fe8 (diff) | |
Restore the old behavior of the rustdoc keyword check + Fix rebase
Diffstat (limited to 'src/librustc_plugin')
| -rw-r--r-- | src/librustc_plugin/load.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_plugin/load.rs b/src/librustc_plugin/load.rs index 680bdcc4bbe..46cd66fe585 100644 --- a/src/librustc_plugin/load.rs +++ b/src/librustc_plugin/load.rs @@ -11,7 +11,7 @@ use std::mem; use std::path::PathBuf; use syntax::ast; use syntax::span_err; -use syntax::symbol::{Symbol, keywords, sym}; +use syntax::symbol::{Symbol, kw, sym}; use syntax_pos::{Span, DUMMY_SP}; /// Pointer to a registrar function. @@ -58,7 +58,7 @@ pub fn load_plugins(sess: &Session, for plugin in plugins { // plugins must have a name and can't be key = value let name = plugin.name_or_empty(); - if name != keywords::Invalid.name() && !plugin.is_value_str() { + if name != kw::Invalid && !plugin.is_value_str() { let args = plugin.meta_item_list().map(ToOwned::to_owned); loader.load_plugin(plugin.span(), name, args.unwrap_or_default()); } else { |
