update min/max usage to latest rustc