Remove unnecessary crate_name
parameter to after_krate
It's always `tcx.crate_name(LOCAL_CRATE)`, it doesn't need to be passed in separately.
This commit is contained in:
parent
25c15cdbe0
commit
f435f7185b
3 changed files with 7 additions and 19 deletions
|
@ -14,7 +14,7 @@ use std::rc::Rc;
|
|||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_middle::ty::TyCtxt;
|
||||
use rustc_session::Session;
|
||||
use rustc_span::{edition::Edition, Symbol};
|
||||
use rustc_span::edition::Edition;
|
||||
|
||||
use rustdoc_json_types as types;
|
||||
|
||||
|
@ -204,11 +204,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn after_krate(
|
||||
&mut self,
|
||||
_crate_name: Symbol,
|
||||
_diag: &rustc_errors::Handler,
|
||||
) -> Result<(), Error> {
|
||||
fn after_krate(&mut self, _diag: &rustc_errors::Handler) -> Result<(), Error> {
|
||||
debug!("Done with crate");
|
||||
let mut index = (*self.index).clone().into_inner();
|
||||
index.extend(self.get_trait_items());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue