1
Fork 0

Remove unused hir_id arg from visit_attribute.

This commit is contained in:
Nicholas Nethercote 2022-06-16 07:54:03 +10:00
parent 969a2cc8c1
commit c9e97251ad
6 changed files with 9 additions and 11 deletions

View file

@ -120,7 +120,7 @@ impl<'tcx> Visitor<'tcx> for LibFeatureCollector<'tcx> {
self.tcx.hir()
}
fn visit_attribute(&mut self, _: rustc_hir::HirId, attr: &'tcx Attribute) {
fn visit_attribute(&mut self, attr: &'tcx Attribute) {
if let Some((feature, stable, span)) = self.extract(attr) {
self.collect_feature(feature, stable, span);
}