about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/macro-check.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-11-09 17:02:49 +0000
committerbors <bors@rust-lang.org>2019-11-09 17:02:49 +0000
commitac162c6abe34cdf965afc0389f6cefa79653c63b (patch)
treee936dd9b20535d0dbe34dc4afd688061d96097e9 /src/test/rustdoc-js-std/macro-check.js
parenteb981a1da4bcd2d372f0b61b38e6ce3b13a47468 (diff)
parent1aa5d0cace3a72ae23f32ece5bb18085b36b5258 (diff)
downloadrust-ac162c6abe34cdf965afc0389f6cefa79653c63b.tar.gz
rust-ac162c6abe34cdf965afc0389f6cefa79653c63b.zip
Auto merge of #63871 - BatmanAoD:FloatFnMustUse, r=withoutboats
Add #[must_use] to all functions 'fn(float) -> float'

These are pure functions.

```rust
impl f32/f64 {
    fn floor(self) -> Self;
    fn ceil(self) -> Self;
    fn round(self) -> Self;
    fn trunc(self) -> Self;
    fn fract(self) -> Self;
    fn abs(self) -> Self;
    fn signum(self) -> Self;
    fn mul_add(self, a: Self, b: Self) -> Self;
    fn div_euclid(self, rhs: Self) -> Self;
    fn rem_euclid(self, rhs: Self) -> Self;
    fn powi(self, n: i32) -> Self;
    fn powf(self, n: Self) -> Self;
    fn sqrt(self) -> Self;
    fn exp(self) -> Self;
    fn exp2(self) -> Self;
    fn ln(self) -> Self;
    fn log(self, base: Self) -> Self;
    fn log2(self) -> Self;
    fn log10(self) -> Self;
    fn abs_sub(self, other: Self) -> Self;
    fn cbrt(self) -> Self;
    fn hypot(self, other: Self) -> Self;
    fn sin(self) -> Self;
    fn cos(self) -> Self;
    fn tan(self) -> Self;
    fn asin(self) -> Self;
    fn acos(self) -> Self;
    fn atan(self) -> Self;
    fn atan2(self, other: Self) -> Self;
    fn exp_m1(self) -> Self;
    fn ln_1p(self) -> Self;
    fn sinh(self) -> Self;
    fn cosh(self) -> Self;
    fn tanh(self) -> Self;
    fn asinh(self) -> Self;
    fn acosh(self) -> Self;
    fn atanh(self) -> Self;
    fn clamp(self, min: Self, max: Self) -> Self;
}
```

Part of #48926
Diffstat (limited to 'src/test/rustdoc-js-std/macro-check.js')
0 files changed, 0 insertions, 0 deletions