8000 Rollup of 7 pull requests by Centril · Pull Request #64972 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 7 pull requests #64972

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

Merged
merged 38 commits into from
Oct 2, 2019
Merged
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5faae38
apfloat: improve doc comments
RalfJung Aug 9, 2019
f290467
syntax: cleanup method parsing.
Centril Sep 29, 2019
378cc98
syntax: `is_named_argument` -> `is_named_param`.
Centril Sep 29, 2019
4fa9c3b
syntax refactor `parse_fn_params`
Centril Sep 29, 2019
40dc9da
syntax refactor `parse_self_param` (1)
Centril Sep 29, 2019
f688f8a
syntax refactor `parse_self_param` (2)
Centril Sep 29, 2019
ac454e9
syntax refactor `parse_self_param` (3)
Centril Sep 30, 2019
4306d00
syntax refactor `parse_self_param` (4)
Centril Sep 30, 2019
0492302
syntax refactor `parse_self_param` (5)
Centril Sep 30, 2019
347deac
syntax: reorder param parsing to make more sense.
Centril Sep 30, 2019
d9d0e5d
syntax: cleanup `parse_fn_decl`.
Centril Sep 30, 2019
5b80ead
syntax: misc cleanup
Centril Sep 30, 2019
66bf323
syntax: cleanup `parse_visibility`.
Centril Sep 30, 2019
573a8d8
syntax: extract `error_on_invalid_abi`.
Centril Sep 30, 2019
258e86a
syntax: fuse more code paths together.
Centril Sep 30, 2019
bea404f
syntax: stylistic cleanup in item parsing.
Centril Sep 30, 2019
151ce96
syntax: reduce repetition in fn parsing.
Centril Sep 30, 2019
c9baaa7
Fixes #64919. Suggest fix based on operator precendence.
sam09 Sep 30, 2019
df298b4
syntax: document some methods.
Centril Oct 1, 2019
30647d1
syntax: put helpers of `parse_self_param` in the method.
Centril Oct 1, 2019
49780d2
syntax: merge things back into `parse_visibility`.
Centril Oct 1, 2019
e046904
syntax: de-closure-ify `check_or_expected`.
Centril Oct 1, 2019
5c5dd80
syntax: reformat passing of `FnHeader` to `parse_item_fn`.
Centril Oct 1, 2019
eb4ca21
Add lower bound doctests for `saturating_{add,sub}` signed ints
tesuji Oct 1, 2019
e9d54e1
Reorder the slice interners.
nnethercote Oct 1, 2019
3724e37
Remove special treatment for `_intern_canonical_var_infos`.
nnethercote Oct 1, 2019
475e131
Inline and remove `intern_method!`.
nnethercote Oct 1, 2019
b2ae3f2
Remove the `$lt_tcx` parameter from `direct_interners!`.
nnethercote Oct 1, 2019
9e4eb46
Change to use exprPrecedence instead of exprKind.
sam09 Oct 1, 2019
6c1b447
Remove unneeded `fn main` blocks from docs
tesuji Oct 1, 2019
d132a70
BTreeSet intersection, difference & is_subnet optimizations
ssomers Sep 22, 2019
baba628
Rollup merge of #63416 - RalfJung:apfloat, r=eddyb
Centril Oct 1, 2019
69028ae
Rollup merge of #64820 - ssomers:master, r=bluss
Centril Oct 1, 2019
db96893
Rollup merge of #64910 - Centril:params-cleanup, r=petrochenkov
Centril Oct 1, 2019
7628cad
Rollup merge of #64912 - lzutao:unneeded-main-doc, r=jonas-schievink
Centril Oct 1, 2019
67cbeee
Rollup merge of #64933 - sam09:master, r=estebank
Centril Oct 1, 2019
66148f6
Rollup merge of #64943 - lzutao:doc-saturating, r=shepmaster
Centril Oct 1, 2019
adc0dc5
Rollup merge of #64950 - nnethercote:simplify-interners, r=varkor,spa…
Centril Oct 1, 2019
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
3 changes: 2 additions & 1 deletion src/librustc_apfloat/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,13 @@ pub trait Float
fn ilogb(self) -> ExpInt;

/// Returns: self * 2<sup>exp</sup> for integral exponents.
/// Equivalent to C standard library function `ldexp`.
fn scalbn_r(self, exp: ExpInt, round: Round) -> Self;
fn scalbn(self, exp: ExpInt) -> Self {
self.scalbn_r(exp, Round::NearestTiesToEven)
}

/// Equivalent of C standard library function.
/// Equivalent to C standard library function with the same name.
///
/// While the C standard says exp is an unspecified value for infinity and nan,
/// this returns INT_MAX for infinities, and INT_MIN for NaNs (see `ilogb`).
Expand Down
0