feat: preserve order of parameters in extract_functions

This commit is contained in:
roife 2024-12-11 01:28:28 +08:00
parent 9c03cbb499
commit 78fb0e47ca
2 changed files with 54 additions and 15 deletions

View file

@ -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,