Transition librustdoc to 2018 edition
This commit is contained in:
parent
082c86175f
commit
1932d7a52d
36 changed files with 419 additions and 423 deletions
|
@ -4,17 +4,17 @@ use syntax::parse::{ParseSess, token};
|
|||
use syntax::source_map::FilePathMapping;
|
||||
use syntax_pos::FileName;
|
||||
|
||||
use clean;
|
||||
use core::DocContext;
|
||||
use fold::DocFolder;
|
||||
use html::markdown::{self, RustCodeBlock};
|
||||
use passes::Pass;
|
||||
use crate::clean;
|
||||
use crate::core::DocContext;
|
||||
use crate::fold::DocFolder;
|
||||
use crate::html::markdown::{self, RustCodeBlock};
|
||||
use crate::passes::Pass;
|
||||
|
||||
pub const CHECK_CODE_BLOCK_SYNTAX: Pass =
|
||||
Pass::early("check-code-block-syntax", check_code_block_syntax,
|
||||
"validates syntax inside Rust code blocks");
|
||||
|
||||
pub fn check_code_block_syntax(krate: clean::Crate, cx: &DocContext) -> clean::Crate {
|
||||
pub fn check_code_block_syntax(krate: clean::Crate, cx: &DocContext<'_, '_, '_>) -> clean::Crate {
|
||||
SyntaxChecker { cx }.fold_crate(krate)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue