]> git.lizzy.rs Git - rust.git/commit
rustc: Remove f{32,64} % from the language
authorAlex Crichton <alex@alexcrichton.com>
Tue, 8 Apr 2014 22:39:46 +0000 (15:39 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 8 Apr 2014 22:39:46 +0000 (15:39 -0700)
commit1563ea9f278e1e1cd0d21fe8c4fc761805b71964
treefcbaf8041e5416abcecd878ccbb5970d7acb0f60
parent02f51211eddbbaf6c6e02cecc78957ce1d5b4600
rustc: Remove f{32,64} % from the language

This commit removes the compiler support for floating point modulus operations,
as well as from the language. An implementation for this operator is now
required to be provided by libraries.

Floating point modulus is rarely used, doesn't exist in C, and is always lowered
to an fmod library call by LLVM, and LLVM is considering removing support
entirely.

Closes #12278
src/librustc/middle/ty.rs
src/libstd/num/f32.rs
src/libstd/num/f64.rs