Give ExternCrate a Name, not a ModPath

This commit is contained in:
Jonas Schievink 2020-09-17 15:28:23 +02:00
parent d84c18d989
commit 6eea06415d
5 changed files with 11 additions and 18 deletions

View file

@ -56,10 +56,6 @@ impl ModPath {
ModPath { kind, segments }
}
pub(crate) fn from_name_ref(name_ref: &ast::NameRef) -> ModPath {
name_ref.as_name().into()
}
/// Converts an `tt::Ident` into a single-identifier `Path`.
pub(crate) fn from_tt_ident(ident: &tt::Ident) -> ModPath {
ident.as_name().into()