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:
parent
e7bea57ce4
commit
7943932384
11 changed files with 47 additions and 53 deletions
|
@ -104,7 +104,7 @@ fn intern_as_new_static<'tcx>(
|
|||
) {
|
||||
let feed = tcx.create_def(
|
||||
static_id,
|
||||
sym::nested,
|
||||
Some(sym::nested),
|
||||
DefKind::Static { safety: hir::Safety::Safe, mutability: alloc.0.mutability, nested: true },
|
||||
);
|
||||
tcx.set_nested_alloc_id_static(alloc_id, feed.def_id());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue