feat: Make unqualified derive attributes flyimportable

This commit is contained in:
Lukas Wirth 2021-10-28 19:19:30 +02:00
parent 7fdbdc4ab2
commit ebd63ec1cf
11 changed files with 124 additions and 31 deletions

View file

@ -63,8 +63,8 @@ impl Name {
/// Ideally, we want a `gensym` semantics for missing names -- each missing
/// name is equal only to itself. It's not clear how to implement this in
/// salsa though, so we punt on that bit for a moment.
pub fn missing() -> Name {
Name::new_text("[missing name]".into())
pub const fn missing() -> Name {
Name::new_inline("[missing name]")
}
/// Returns the tuple index this name represents if it is a tuple field.