mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
feat: preserve order of parameters in extract_functions
This commit is contained in:
parent
9c03cbb499
commit
78fb0e47ca
2 changed files with 54 additions and 15 deletions
|
@ -3781,6 +3781,18 @@ impl Local {
|
|||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for Local {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
||||
Some(self.cmp(other))
|
||||
}
|
||||
}
|
||||
|
||||
impl Ord for Local {
|
||||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||
self.binding_id.cmp(&other.binding_id)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct DeriveHelper {
|
||||
pub(crate) derive: MacroId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue