rustc: hir().local_def_id_to_hir_id() -> tcx.local_def_id_to_hir_id() cleanup
This commit is contained in:
@@ -42,7 +42,7 @@ impl<'tcx> LanguageItemCollector<'tcx> {
|
||||
}
|
||||
|
||||
fn check_for_lang(&mut self, actual_target: Target, def_id: LocalDefId) {
|
||||
let attrs = self.tcx.hir().attrs(self.tcx.hir().local_def_id_to_hir_id(def_id));
|
||||
let attrs = self.tcx.hir().attrs(self.tcx.local_def_id_to_hir_id(def_id));
|
||||
if let Some((name, span)) = extract(attrs) {
|
||||
match LangItem::from_name(name) {
|
||||
// Known lang item with attribute on correct target.
|
||||
|
||||
Reference in New Issue
Block a user