mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 02:29:44 +00:00
internal: Symbol is not PartialOrd
This commit is contained in:
parent
8b5816b4f5
commit
c28b80c321
2 changed files with 5 additions and 15 deletions
|
|
@ -78,8 +78,10 @@ impl ProcMacrosBuilder {
|
|||
if let Ok(proc_macros) = &mut proc_macro {
|
||||
// Sort proc macros to improve incrementality when only their order has changed (ideally the build system
|
||||
// will not change their order, but just to be sure).
|
||||
proc_macros
|
||||
.sort_unstable_by_key(|proc_macro| (proc_macro.name.clone(), proc_macro.kind));
|
||||
proc_macros.sort_unstable_by(|proc_macro, proc_macro2| {
|
||||
(proc_macro.name.as_str(), proc_macro.kind)
|
||||
.cmp(&(proc_macro2.name.as_str(), proc_macro2.kind))
|
||||
});
|
||||
}
|
||||
self.0.insert(
|
||||
proc_macros_crate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue