Introduce sym::dummy
and Ident::dummy
.
The idea is to identify cases of symbols/identifiers that are not expected to be used. There isn't a perfectly sharp line between "dummy" and "not dummy", but I think it's useful nonetheless.
This commit is contained in:
parent
fe04460f6f
commit
0b2d7062c4
7 changed files with 29 additions and 8 deletions
|
@ -2266,7 +2266,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
|
|||
&& !first.ident.is_path_segment_keyword() =>
|
||||
{
|
||||
// Insert a placeholder that's later replaced by `self`/`super`/etc.
|
||||
path.insert(0, Segment::from_ident(Ident::empty()));
|
||||
path.insert(0, Segment::from_ident(Ident::dummy()));
|
||||
}
|
||||
_ => return None,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue