Auto merge of #104507 - WaffleLapkin:asderefsyou, r=wesleywiser
Use `as_deref` in compiler (but only where it makes sense) This simplifies some code :3 (there are some changes that are not exacly `as_deref`, but more like "clever `Option`/`Result` method use")
This commit is contained in:
commit
872631d0f0
27 changed files with 45 additions and 63 deletions
|
@ -1029,7 +1029,7 @@ impl<'tcx> DumpVisitor<'tcx> {
|
|||
trait_item.hir_id(),
|
||||
trait_item.ident,
|
||||
Some(bounds),
|
||||
default_ty.as_ref().map(|ty| &**ty),
|
||||
default_ty.as_deref(),
|
||||
&self.save_ctxt,
|
||||
),
|
||||
attributes: lower_attributes(attrs.to_vec(), &self.save_ctxt),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue