Rollup merge of #62905 - fakenine:normalize_use_of_backticks_compiler_messages_p16, r=Centril
Normalize use of backticks in compiler messages for doc https://github.com/rust-lang/rust/issues/60532
This commit is contained in:
commit
52247b2383
10 changed files with 33 additions and 33 deletions
|
|
@ -1319,7 +1319,7 @@ impl Clean<Option<Lifetime>> for ty::RegionKind {
|
|||
ty::ReEmpty |
|
||||
ty::ReClosureBound(_) |
|
||||
ty::ReErased => {
|
||||
debug!("Cannot clean region {:?}", self);
|
||||
debug!("cannot clean region {:?}", self);
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
@ -4082,7 +4082,7 @@ impl ToSource for syntax_pos::Span {
|
|||
|
||||
fn name_from_pat(p: &hir::Pat) -> String {
|
||||
use rustc::hir::*;
|
||||
debug!("Trying to get a name from pattern: {:?}", p);
|
||||
debug!("trying to get a name from pattern: {:?}", p);
|
||||
|
||||
match p.node {
|
||||
PatKind::Wild => "_".to_string(),
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ impl Options {
|
|||
None => ColorConfig::Auto,
|
||||
Some(arg) => {
|
||||
early_error(ErrorOutputType::default(),
|
||||
&format!("argument for --color must be `auto`, `always` or `never` \
|
||||
&format!("argument for `--color` must be `auto`, `always` or `never` \
|
||||
(instead was `{}`)", arg));
|
||||
}
|
||||
};
|
||||
|
|
@ -269,7 +269,7 @@ impl Options {
|
|||
Some("short") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Short(color)),
|
||||
Some(arg) => {
|
||||
early_error(ErrorOutputType::default(),
|
||||
&format!("argument for --error-format must be `human`, `json` or \
|
||||
&format!("argument for `--error-format` must be `human`, `json` or \
|
||||
`short` (instead was `{}`)", arg));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
|
|||
},
|
||||
sym::plugins => {
|
||||
report_deprecated_attr("plugins = \"...\"", diag);
|
||||
eprintln!("WARNING: #![doc(plugins = \"...\")] no longer functions; \
|
||||
eprintln!("WARNING: `#![doc(plugins = \"...\")]` no longer functions; \
|
||||
see CVE-2018-1000622");
|
||||
continue
|
||||
},
|
||||
|
|
|
|||
|
|
@ -730,7 +730,7 @@ impl Tester for Collector {
|
|||
let edition = config.edition.unwrap_or(self.edition);
|
||||
let persist_doctests = self.persist_doctests.clone();
|
||||
|
||||
debug!("Creating test {}: {}", name, test);
|
||||
debug!("creating test {}: {}", name, test);
|
||||
self.tests.push(testing::TestDescAndFn {
|
||||
desc: testing::TestDesc {
|
||||
name: testing::DynTestName(name),
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
|||
pub fn visit_variant_data(&mut self, item: &'tcx hir::Item,
|
||||
name: ast::Name, sd: &'tcx hir::VariantData,
|
||||
generics: &'tcx hir::Generics) -> Struct<'tcx> {
|
||||
debug!("Visiting struct");
|
||||
debug!("visiting struct");
|
||||
let struct_type = struct_type_from_def(&*sd);
|
||||
Struct {
|
||||
id: item.hir_id,
|
||||
|
|
@ -115,7 +115,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
|||
pub fn visit_union_data(&mut self, item: &'tcx hir::Item,
|
||||
name: ast::Name, sd: &'tcx hir::VariantData,
|
||||
generics: &'tcx hir::Generics) -> Union<'tcx> {
|
||||
debug!("Visiting union");
|
||||
debug!("visiting union");
|
||||
let struct_type = struct_type_from_def(&*sd);
|
||||
Union {
|
||||
id: item.hir_id,
|
||||
|
|
@ -134,7 +134,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
|||
pub fn visit_enum_def(&mut self, it: &'tcx hir::Item,
|
||||
name: ast::Name, def: &'tcx hir::EnumDef,
|
||||
generics: &'tcx hir::Generics) -> Enum<'tcx> {
|
||||
debug!("Visiting enum");
|
||||
debug!("visiting enum");
|
||||
Enum {
|
||||
name,
|
||||
variants: def.variants.iter().map(|v| Variant {
|
||||
|
|
@ -161,7 +161,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
|||
header: hir::FnHeader,
|
||||
generics: &'tcx hir::Generics,
|
||||
body: hir::BodyId) {
|
||||
debug!("Visiting fn");
|
||||
debug!("visiting fn");
|
||||
let macro_kind = item.attrs.iter().filter_map(|a| {
|
||||
if a.check_name(sym::proc_macro) {
|
||||
Some(MacroKind::Bang)
|
||||
|
|
@ -371,7 +371,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|
|||
|
||||
pub fn visit_item(&mut self, item: &'tcx hir::Item,
|
||||
renamed: Option<ast::Ident>, om: &mut Module<'tcx>) {
|
||||
debug!("Visiting item {:?}", item);
|
||||
debug!("visiting item {:?}", item);
|
||||
let ident = renamed.unwrap_or(item.ident);
|
||||
|
||||
if item.vis.node.is_pub() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue