Fix PartialEq args when #[const_trait] is enabled
#118379
Merged
PartialEq args when #[const_trait] is enabled
#118379