1
Fork 0

Delete ProcessCfgMod

The previous commit removes the use of this, and now we cleanup.
This commit is contained in:
Mark Rousskov 2019-11-19 21:38:31 -05:00
parent 39c0fa847e
commit 70805e6444
15 changed files with 17 additions and 53 deletions

View file

@ -3,7 +3,6 @@ use rustc_parse::lexer::{StringReader as Lexer};
use syntax::token;
use syntax::sess::ParseSess;
use syntax::source_map::FilePathMapping;
use syntax_expand::config::process_configure_mod;
use syntax_pos::{InnerSpan, FileName};
use crate::clean;
@ -28,7 +27,7 @@ struct SyntaxChecker<'a, 'tcx> {
impl<'a, 'tcx> SyntaxChecker<'a, 'tcx> {
fn check_rust_syntax(&self, item: &clean::Item, dox: &str, code_block: RustCodeBlock) {
let sess = ParseSess::new(FilePathMapping::empty(), process_configure_mod);
let sess = ParseSess::new(FilePathMapping::empty());
let source_file = sess.source_map().new_source_file(
FileName::Custom(String::from("doctest")),
dox[code_block.code].to_owned(),