Remove CACHE_KEY global

This commit is contained in:
Guillaume Gomez
2021-01-12 23:36:04 +01:00
parent 78e22069d0
commit 9fd5a67984
18 changed files with 729 additions and 664 deletions

View File

@@ -218,7 +218,12 @@ impl<'a, 'b> fold::DocFolder for CoverageCalculator<'a, 'b> {
clean::ImplItem(ref impl_) => {
let filename = i.source.filename(self.ctx.sess());
if let Some(ref tr) = impl_.trait_ {
debug!("impl {:#} for {:#} in {}", tr.print(), impl_.for_.print(), filename,);
debug!(
"impl {:#} for {:#} in {}",
tr.print(&self.ctx.cache),
impl_.for_.print(&self.ctx.cache),
filename,
);
// don't count trait impls, the missing-docs lint doesn't so we shouldn't
// either
@@ -227,7 +232,7 @@ impl<'a, 'b> fold::DocFolder for CoverageCalculator<'a, 'b> {
// inherent impls *can* be documented, and those docs show up, but in most
// cases it doesn't make sense, as all methods on a type are in one single
// impl block
debug!("impl {:#} in {}", impl_.for_.print(), filename);
debug!("impl {:#} in {}", impl_.for_.print(&self.ctx.cache), filename);
}
}
_ => {