update clippy

This commit is contained in:
lcnr 2022-04-26 14:04:23 +02:00
parent bae84a484c
commit 5ee1b18a14
12 changed files with 28 additions and 46 deletions

View file

@ -2184,7 +2184,7 @@ impl<'tcx> TyCtxt<'tcx> {
}
}
// TODO: Remove this function.
// FIXME(@lcnr): Remove this function.
pub fn get_attrs_unchecked(self, did: DefId) -> &'tcx [ast::Attribute] {
if let Some(did) = did.as_local() {
self.hir().attrs(self.hir().local_def_id_to_hir_id(did))