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
|
@ -1462,7 +1462,8 @@ impl<'a, 'tcx> BoundVarContext<'a, 'tcx> {
|
|||
for &(opaque_def_id, captures) in opaque_capture_scopes.iter().rev() {
|
||||
let mut captures = captures.borrow_mut();
|
||||
let remapped = *captures.entry(lifetime).or_insert_with(|| {
|
||||
let feed = self.tcx.create_def(opaque_def_id, ident.name, DefKind::LifetimeParam);
|
||||
let feed =
|
||||
self.tcx.create_def(opaque_def_id, Some(ident.name), DefKind::LifetimeParam);
|
||||
feed.def_span(ident.span);
|
||||
feed.def_ident_span(Some(ident.span));
|
||||
feed.def_id()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue