Pass Option<Symbol> to def_path_data/create_def methods.

It's clearer than using `kw::Empty` to mean `None`.
This commit is contained in:
Nicholas Nethercote
2025-03-04 13:54:15 +11:00
parent e7bea57ce4
commit 7943932384
11 changed files with 47 additions and 53 deletions

View File

@@ -1340,7 +1340,7 @@ impl<'tcx> Resolver<'_, 'tcx> {
&mut self,
parent: LocalDefId,
node_id: ast::NodeId,
name: Symbol,
name: Option<Symbol>,
def_kind: DefKind,
expn_id: ExpnId,
span: Span,