Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #78589

Closed
wants to merge 34 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
37ce212
make exp_m1 examples more representative of use
tspiteri Sep 23, 2020
50d3ddc
make ln_1p examples more representative of use
tspiteri Sep 23, 2020
01b0aff
Add std::panic::panic_box.
m-ou-se Jul 22, 2020
16201da
Rename panic_box to panic_any.
m-ou-se Oct 18, 2020
9e16213
Suggest calling associated `fn` inside `trait`s
estebank Oct 26, 2020
a9d334d
Update panic_any feature name.
m-ou-se Oct 28, 2020
b48fee0
Add tracking issue number for panic_any.
m-ou-se Oct 28, 2020
4ba57aa
Strip tokens from trait and impl items before printing AST JSON
Aaron1011 Oct 29, 2020
dcbf2f3
rustc_llvm: unwrap LLVMMetadataRef before casting
cuviper Oct 29, 2020
93ca9ae
Qualify `panic!` as `core::panic!` in non-built-in `core` macros
camelid Oct 25, 2020
5c87941
Clean up `core` macros documentation
camelid Oct 25, 2020
7b3d897
Add two more test cases
camelid Oct 29, 2020
8cf7d66
Create config.toml in the current directory, not the top-level directory
jyn514 Oct 30, 2020
59c6ae6
Use SOCK_CLOEXEC and accept4() on more platforms.
de-vri-es Oct 30, 2020
922ebf4
Remove unused `use std::panic;`s
camelid Oct 30, 2020
23018a5
Implement rustc side of report-future-incompat
Aaron1011 Aug 13, 2020
6bdb4e3
Some work
Aaron1011 Oct 18, 2020
a77a65c
Print future breakage report
Aaron1011 Oct 19, 2020
2d17597
Strip out non-diagnostic lines from rustfix input
Aaron1011 Oct 19, 2020
4b4f84f
Only error on unfixed diagnostics
Aaron1011 Oct 19, 2020
4621ce9
Update into-iter-on-arrays test to check future-incompat-report
Aaron1011 Oct 19, 2020
2f6e59d
Don't display empty future-compat report
Aaron1011 Oct 19, 2020
7b7c223
Always pass `-Z future-incompat-report` to UI tests
Aaron1011 Oct 19, 2020
ac12e6f
Fix test
Aaron1011 Oct 20, 2020
6db00a2
Update Clippy path to `Lint`
Aaron1011 Oct 31, 2020
0541f8e
Rollup merge of #74622 - fusion-engineering-forks:panic-box, r=KodrAus
Dylan-DPC Oct 31, 2020
185b7fd
Rollup merge of #75534 - Aaron1011:feature/new-future-breakage, r=pnk…
Dylan-DPC Oct 31, 2020
fcffbcf
Rollup merge of #77099 - tspiteri:exp_m1-examples, r=m-ou-se
Dylan-DPC Oct 31, 2020
3eba549
Rollup merge of #78343 - camelid:macros-qualify-panic, r=m-ou-se
Dylan-DPC Oct 31, 2020
c5272d6
Rollup merge of #78420 - estebank:suggest-assoc-fn, r=petrochenkov
Dylan-DPC Oct 31, 2020
bd515ee
Rollup merge of #78526 - Aaron1011:fix/assoc-tokens, r=estebank
Dylan-DPC Oct 31, 2020
ebcf144
Rollup merge of #78531 - cuviper:unwrap-metadata, r=tmandry
Dylan-DPC Oct 31, 2020
61eb1a8
Rollup merge of #78550 - jyn514:setup, r=Mark-Simulacrum
Dylan-DPC Oct 31, 2020
defae8d
Rollup merge of #78572 - de-vri-es:bsd-cloexec, r=m-ou-se
Dylan-DPC Oct 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make ln_1p examples more representative of use
With this commit, the examples for ln_1p would fail if (x + 1.0).ln()
is used instead of x.ln_1p().
tspiteri committed Sep 23, 2020
commit 50d3ddcb0cbc36f782fa5939d1ef24422f6902d4
9 changes: 5 additions & 4 deletions library/std/src/f32.rs
Original file line number Diff line number Diff line change
@@ -740,12 +740,13 @@ impl f32 {
/// # Examples
///
/// ```
/// let x = std::f32::consts::E - 1.0;
/// let x = 1e-8_f32;
///
/// // ln(1 + (e - 1)) == ln(e) == 1
/// let abs_difference = (x.ln_1p() - 1.0).abs();
/// // for very small x, ln(1 + x) is approximately x - x^2 / 2
/// let approx = x - x * x / 2.0;
/// let abs_difference = (x.ln_1p() - approx).abs();
///
/// assert!(abs_difference <= f32::EPSILON);
/// assert!(abs_difference < 1e-10);
/// ```
#[must_use = "method returns a new number and does not mutate the original value"]
#[stable(feature = "rust1", since = "1.0.0")]
9 changes: 5 additions & 4 deletions library/std/src/f64.rs
Original file line number Diff line number Diff line change
@@ -742,12 +742,13 @@ impl f64 {
/// # Examples
///
/// ```
/// let x = std::f64::consts::E - 1.0;
/// let x = 1e-16_f64;
///
/// // ln(1 + (e - 1)) == ln(e) == 1
/// let abs_difference = (x.ln_1p() - 1.0).abs();
/// // for very small x, ln(1 + x) is approximately x - x^2 / 2
/// let approx = x - x * x / 2.0;
/// let abs_difference = (x.ln_1p() - approx).abs();
///
/// assert!(abs_difference < 1e-10);
/// assert!(abs_difference < 1e-20);
/// ```
#[must_use = "method returns a new number and does not mutate the original value"]
#[stable(feature = "rust1", since = "1.0.0")]