mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Give ExternCrate
a Name
, not a ModPath
This commit is contained in:
parent
d84c18d989
commit
6eea06415d
5 changed files with 11 additions and 18 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue