<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/f64.rs, branch 1.43.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.43.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.43.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-02-12T19:20:56+00:00</updated>
<entry>
<title>Add notice about using new consts in new code on float modules</title>
<updated>2020-02-12T19:20:56+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-02-10T18:45:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c67de2570f881a0601f15c7c15e1fb9a26f2d3bf'/>
<id>urn:sha1:c67de2570f881a0601f15c7c15e1fb9a26f2d3bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #68266 - Stromberg90:patch-2, r=Dylan-DPC</title>
<updated>2020-01-16T06:28:07+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-01-16T06:28:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=90b9a627bf191ac0726ce96e02d44a42ff445bf2'/>
<id>urn:sha1:90b9a627bf191ac0726ce96e02d44a42ff445bf2</id>
<content type='text'>
Changed docs for f32 and f64.
</content>
</entry>
<entry>
<title>Update f64.rs</title>
<updated>2020-01-16T02:34:23+00:00</updated>
<author>
<name>Strømberg</name>
<email>Stromberg90@users.noreply.github.com</email>
</author>
<published>2020-01-16T02:34:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f337b312d0cfec712fc56539a08b3ea9923bbf7'/>
<id>urn:sha1:3f337b312d0cfec712fc56539a08b3ea9923bbf7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use 3.6 instead of 3.5 in float fract() documentation</title>
<updated>2020-01-15T18:46:44+00:00</updated>
<author>
<name>SOFe</name>
<email>sofe2038@gmail.com</email>
</author>
<published>2020-01-14T18:07:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=33bc9ef513d632825ea600cfb4bb6d89f4a09269'/>
<id>urn:sha1:33bc9ef513d632825ea600cfb4bb6d89f4a09269</id>
<content type='text'>
It is not self-explanatory whether the fract() function inverts the fractional part of negative numbers.

Co-Authored-By: Mateusz Mikuła &lt;mati865@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>Remove negative number check from float sqrt</title>
<updated>2020-01-04T23:44:19+00:00</updated>
<author>
<name>Oliver Middleton</name>
<email>olliemail27@gmail.com</email>
</author>
<published>2020-01-04T23:44:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a35b4234df9815e7741aff8fe7cc4dfde12dcc2c'/>
<id>urn:sha1:a35b4234df9815e7741aff8fe7cc4dfde12dcc2c</id>
<content type='text'>
It hasn't been UB to pass negative numbers to sqrt since https://reviews.llvm.org/D28797 which was included in LLVM 5.
</content>
</entry>
<entry>
<title>Format libstd with rustfmt</title>
<updated>2019-11-30T02:43:27+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2019-11-27T18:29:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4436c9d35498e7ae3da261f6141d6d73b915e1e8'/>
<id>urn:sha1:4436c9d35498e7ae3da261f6141d6d73b915e1e8</id>
<content type='text'>
This commit applies rustfmt with rust-lang/rust's default settings to
files in src/libstd *that are not involved in any currently open PR* to
minimize merge conflicts. THe list of files involved in open PRs was
determined by querying GitHub's GraphQL API with this script:
https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8

With the list of files from the script in outstanding_files, the
relevant commands were:

    $ find src/libstd -name '*.rs' \
        | xargs rustfmt --edition=2018 --unstable-features --skip-children
    $ rg libstd outstanding_files | xargs git checkout --

Repeating this process several months apart should get us coverage of
most of the rest of libstd.

To confirm no funny business:

    $ git checkout $THIS_COMMIT^
    $ git show --pretty= --name-only $THIS_COMMIT \
        | xargs rustfmt --edition=2018 --unstable-features --skip-children
    $ git diff $THIS_COMMIT  # there should be no difference
</content>
</entry>
<entry>
<title>Auto merge of #63871 - BatmanAoD:FloatFnMustUse, r=withoutboats</title>
<updated>2019-11-09T17:02:49+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2019-11-09T17:02:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ac162c6abe34cdf965afc0389f6cefa79653c63b'/>
<id>urn:sha1:ac162c6abe34cdf965afc0389f6cefa79653c63b</id>
<content type='text'>
Add #[must_use] to all functions 'fn(float) -&gt; float'

These are pure functions.

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

Part of #48926
</content>
</entry>
<entry>
<title>using 2.0.log(2.0) in examples  does not make it clear which is the base and number. This example makes it clear for programmers who take a glance at the example by following the calculation. It is more intuitive, and eliminates the need for executing the example in the playground.</title>
<updated>2019-11-06T13:50:01+00:00</updated>
<author>
<name>Srinivas Reddy Thatiparthy</name>
<email>thatiparthysreenivas@gmail.com</email>
</author>
<published>2019-11-06T13:50:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=62167c09e5941ca5c07d55f7496ab024287206a0'/>
<id>urn:sha1:62167c09e5941ca5c07d55f7496ab024287206a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restore 'must_use' for 'clamp'; fix warning for tests</title>
<updated>2019-09-05T16:22:11+00:00</updated>
<author>
<name>Kyle Strand</name>
<email>kyle.strand@rms.com</email>
</author>
<published>2019-09-05T16:22:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1aa5d0cace3a72ae23f32ece5bb18085b36b5258'/>
<id>urn:sha1:1aa5d0cace3a72ae23f32ece5bb18085b36b5258</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Let 'clamp' be invoked without using return value; used in tests</title>
<updated>2019-08-28T18:04:32+00:00</updated>
<author>
<name>Kyle Strand</name>
<email>kyle.strand@rms.com</email>
</author>
<published>2019-08-28T18:04:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=54cb728ab8b89ef31578455031519101a93dadc7'/>
<id>urn:sha1:54cb728ab8b89ef31578455031519101a93dadc7</id>
<content type='text'>
</content>
</entry>
</feed>
