diff options
| author | bors <bors@rust-lang.org> | 2013-05-01 01:51:35 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-01 01:51:35 -0700 |
| commit | f67239fac3cc521fedaf14faf5357beab78caea8 (patch) | |
| tree | 6d6d050de821c8dbfd16ea84500f9616298b3cb0 /src/test | |
| parent | bfccfdc78065752079a3863db19ca7148ade3e6f (diff) | |
| parent | ee26c7c433dbb8d41a2b65dbc89eb84acfc2d311 (diff) | |
auto merge of #6147 : bjz/rust/numeric-traits, r=brson
After much discussion on IRC and #4819, we have decided to revert to the old naming of the `/` operator. This does not change its behavior. In making this change, we also have had to rename some of the methods in the `Integer` trait. Here is a list of the methods that have changed: - `Quot::quot` -> `Div::div` - `Rem::rem` - stays the same - `Integer::quot_rem` -> `Integer::div_rem` - `Integer::div` -> `Integer::div_floor` - `Integer::modulo` -> `Integer::mod_floor` - `Integer::div_mod` -> `Integer::div_mod_floor`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/eval-enum.rs | 2 | ||||
| -rw-r--r-- | src/test/run-fail/divide-by-zero.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/eval-enum.rs b/src/test/compile-fail/eval-enum.rs index 01233419579..f92dad961d1 100644 --- a/src/test/compile-fail/eval-enum.rs +++ b/src/test/compile-fail/eval-enum.rs @@ -1,5 +1,5 @@ enum test { - quot_zero = 1/0, //~ERROR expected constant: attempted quotient with a divisor of zero + div_zero = 1/0, //~ERROR expected constant: attempted to divide by zero rem_zero = 1%0 //~ERROR expected constant: attempted remainder with a divisor of zero } diff --git a/src/test/run-fail/divide-by-zero.rs b/src/test/run-fail/divide-by-zero.rs index d4f3828ea71..9c996807ad8 100644 --- a/src/test/run-fail/divide-by-zero.rs +++ b/src/test/run-fail/divide-by-zero.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// error-pattern:attempted quotient with a divisor of zero +// error-pattern:attempted to divide by zero fn main() { let y = 0; let z = 1 / y; |
