logo
  • Search
  • Reddit Posts 🔥
  • Archive
  • GitHub

Why doesn’t rustc eliminate this empty loop?

99 points Nugine 2022-01-25 19:15:04
View on Reddit ↗

https://rust.godbolt.org/z/rY95oGMYd

pub fn test(){
    for _ in 0..=1024 {}
}
© 2025 Query.rs, built by Folyd with ❤️❤️, see about page to learn more · meiguo.app · aiberm.com