rustdoc: adopt to the new lint API
This commit is contained in:
parent
7e90a41844
commit
6ecacf76bc
7 changed files with 61 additions and 78 deletions
|
|
@ -813,11 +813,8 @@ impl<'tcx> ExtraInfo<'tcx> {
|
|||
crate::lint::INVALID_CODEBLOCK_ATTRIBUTES,
|
||||
hir_id,
|
||||
self.sp,
|
||||
|lint| {
|
||||
let mut diag = lint.build(msg);
|
||||
diag.help(help);
|
||||
diag.emit();
|
||||
},
|
||||
msg,
|
||||
|lint| lint.help(help),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue