(Godbolt: https://godbolt.org/z/ndq9KPscc)
그것은 바로 Inclusive Range의 최적화 문제 (Issue: https://github.com/rust-lang/rust/issues/45222)
최적화를 개선하기 위해 몇년동안 꾸준히 노력해오고 있다 (개선PR: https://github.com/rust-lang/rust/pull/58122)
(Godbolt: https://godbolt.org/z/ndq9KPscc)
그것은 바로 Inclusive Range의 최적화 문제 (Issue: https://github.com/rust-lang/rust/issues/45222)
최적화를 개선하기 위해 몇년동안 꾸준히 노력해오고 있다 (개선PR: https://github.com/rust-lang/rust/pull/58122)
루프 안에 아무 동작도 하지 않는다면 foo랑 동일하게 어셈블리가 나와야 할 텐데 신기하네