mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 02:29:44 +00:00
Expose symbol of CrateName
This commit is contained in:
parent
b32ddea521
commit
ab5e821d97
14 changed files with 33 additions and 34 deletions
|
|
@ -508,5 +508,5 @@ fn serialize_crate_name<S>(name: &CrateName, se: S) -> Result<S::Ok, S::Error>
|
|||
where
|
||||
S: serde::Serializer,
|
||||
{
|
||||
se.serialize_str(name)
|
||||
se.serialize_str(name.as_str())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ fn rust_project_is_proc_macro_has_proc_macro_dep() {
|
|||
let crate_data = &crate_graph[crate_id];
|
||||
// Assert that the project crate with `is_proc_macro` has a dependency
|
||||
// on the proc_macro sysroot crate.
|
||||
crate_data.dependencies.iter().find(|&dep| dep.name.deref() == "proc_macro").unwrap();
|
||||
crate_data.dependencies.iter().find(|&dep| *dep.name.deref() == sym::proc_macro).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue