-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 15 pull requests #81525
Rollup of 15 pull requests #81525
Commits on Jan 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8539425 - Browse repository at this point
Copy the full SHA 8539425View commit details -
Configuration menu - View commit details
-
Copy full SHA for edf2e37 - Browse repository at this point
Copy the full SHA edf2e37View commit details
Commits on Jan 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0c8db16 - Browse repository at this point
Copy the full SHA 0c8db16View commit details
Commits on Jan 23, 2021
-
Make functional record update/struct update syntax works inside closu…
…res when feature capture_disjoint_fields is enabled
Configuration menu - View commit details
-
Copy full SHA for e94cf57 - Browse repository at this point
Copy the full SHA e94cf57View commit details -
This is a temporary change only, as we wait to resolve dynamic dispatch issues. The `Stream::next` method and corresponding documentation are expected to be fully restored once we have a path to proceed. Ref: rust-lang/rfcs#2996 (comment) update docs
Configuration menu - View commit details
-
Copy full SHA for a1b1132 - Browse repository at this point
Copy the full SHA a1b1132View commit details
Commits on Jan 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d00c850 - Browse repository at this point
Copy the full SHA d00c850View commit details
Commits on Jan 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 328abfb - Browse repository at this point
Copy the full SHA 328abfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 425a70a - Browse repository at this point
Copy the full SHA 425a70aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c07e558 - Browse repository at this point
Copy the full SHA c07e558View commit details -
Configuration menu - View commit details
-
Copy full SHA for a623ea5 - Browse repository at this point
Copy the full SHA a623ea5View commit details
Commits on Jan 28, 2021
-
Also switches on formatting of the mir build module
Configuration menu - View commit details
-
Copy full SHA for 063b427 - Browse repository at this point
Copy the full SHA 063b427View commit details -
Clone entire
TokenCursor
when collecting tokensReverts PR #80830 Fixes taiki-e/pin-project#312 We can have an arbitrary number of `None`-delimited group frames pushed on the stack due to proc-macro invocations, which can legally be exited. Attempting to account for this would add a lot of complexity for a tiny performance gain, so let's just use the original strategy.
Configuration menu - View commit details
-
Copy full SHA for 5d73918 - Browse repository at this point
Copy the full SHA 5d73918View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad14924 - Browse repository at this point
Copy the full SHA ad14924View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dc0d1d - Browse repository at this point
Copy the full SHA 9dc0d1dView commit details -
Balance sidebar
Deref
cycle check with main contentThe `Deref` cycle checks added as part of #80653 were "unbalanced" in the sense that the main content code path checks for cycles _before_ descending, while the sidebar checks _after_. Checking _before_ is correct, so this changes the sidebar path to match the main content path.
Configuration menu - View commit details
-
Copy full SHA for a6fa92c - Browse repository at this point
Copy the full SHA a6fa92cView commit details
Commits on Jan 29, 2021
-
rustdoc: Remove unnecessary optional
Previously, the HTML output format was represented by both `Some(OutputFormat::Html)` and `None` so there's no need to have an optional. Instead, `OutputFormat::Html` is explicitly the default and we no longer have a "tri-state enum".
Configuration menu - View commit details
-
Copy full SHA for f620b5c - Browse repository at this point
Copy the full SHA f620b5cView commit details -
Updated Vec::splice documentation
Replacing with equal number of values does not increase the length of the vec. Reference: https://stackoverflow.com/a/62559271/3990767
Configuration menu - View commit details
-
Copy full SHA for 02094f9 - Browse repository at this point
Copy the full SHA 02094f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e983d7 - Browse repository at this point
Copy the full SHA 5e983d7View commit details -
Treat nightlies for a version as complete
This commit makes cfg(version) treat the nightlies for version 1.n.0 as 1.n.0, even though that nightly version might not have all stabilizations and features of the released 1.n.0. This is done for greater convenience for people who want to test a newly stabilized feature on nightly. For users who wish to pin nightlies, this commit adds a -Z assume-incomplete-release option that they can enable if there are any issues due to this change.
Configuration menu - View commit details
-
Copy full SHA for d8b5745 - Browse repository at this point
Copy the full SHA d8b5745View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd18c48 - Browse repository at this point
Copy the full SHA dd18c48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08141a5 - Browse repository at this point
Copy the full SHA 08141a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13ffa43 - Browse repository at this point
Copy the full SHA 13ffa43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 718398c - Browse repository at this point
Copy the full SHA 718398cView commit details -
Rollup merge of #78052 - da-x:path-trimming-type-aliases, r=davidtwco
path trimming: ignore type aliases Continuation of #73996.
Configuration menu - View commit details
-
Copy full SHA for 2f4f1dd - Browse repository at this point
Copy the full SHA 2f4f1ddView commit details -
Rollup merge of #79023 - yoshuawuyts:stream, r=KodrAus
Add `core::stream::Stream` [[Tracking issue: #79024](#79024)] This patch adds the `core::stream` submodule and implements `core::stream::Stream` in accordance with [RFC2996](rust-lang/rfcs#2996). The RFC hasn't been merged yet, but as requested by the libs team in rust-lang/rfcs#2996 (comment) I'm filing this PR to get the ball rolling. ## Documentatation The docs in this PR have been adapted from [`std::iter`](https://doc.rust-lang.org/std/iter/index.html), [`async_std::stream`](https://docs.rs/async-std/1.7.0/async_std/stream/index.html), and [`futures::stream::Stream`](https://docs.rs/futures/0.3.8/futures/stream/trait.Stream.html). Once this PR lands my plan is to follow this up with PRs to add helper methods such as `stream::repeat` which can be used to document more of the concepts that are currently missing. That will allow us to cover concepts such as "infinite streams" and "laziness" in more depth. ## Feature gate The feature gate for `Stream` is `stream_trait`. This matches the `#[lang = "future_trait"]` attribute name. The intention is that only the APIs defined in RFC2996 will use this feature gate, with future additions such as `stream::repeat` using their own feature gates. This is so we can ensure a smooth path towards stabilizing the `Stream` trait without needing to stabilize all the APIs in `core::stream` at once. But also don't start expanding the API until _after_ stabilization, as was the case with `std::future`. __edit:__ the feature gate has been changed to `async_stream` to match the feature gate proposed in the RFC. ## Conclusion This PR introduces `core::stream::{Stream, Next}` and re-exports it from `std` as `std::stream::{Stream, Next}`. Landing `Stream` in the stdlib has been a mult-year process; and it's incredibly exciting for this to finally happen! --- r? ``@KodrAus`` cc/ ``@rust-lang/wg-async-foundations`` ``@rust-lang/libs``
Configuration menu - View commit details
-
Copy full SHA for 3469323 - Browse repository at this point
Copy the full SHA 3469323View commit details -
Rollup merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov
Bump rustfmt version
Configuration menu - View commit details
-
Copy full SHA for 76d0583 - Browse repository at this point
Copy the full SHA 76d0583View commit details -
Rollup merge of #80886 - RalfJung:stable-raw-ref-macros, r=m-ou-se
Stabilize raw ref macros This stabilizes `raw_ref_macros` (#73394), which is possible now that #74355 is fixed. However, as I already said in #73394 (comment), I am not particularly happy with the current names of the macros. So I propose we also change them, which means I am proposing to stabilize the following in `core::ptr`: ```rust pub macro const_addr_of($e:expr) { &raw const $e } pub macro mut_addr_of($e:expr) { &raw mut $e } ``` The macro name change means we need another round of FCP. Cc ``@rust-lang/libs`` Fixes #73394
Configuration menu - View commit details
-
Copy full SHA for 5fda3eb - Browse repository at this point
Copy the full SHA 5fda3ebView commit details -
Rollup merge of #80959 - jhpratt:unsigned_abs-stabilization, r=m-ou-se
Stabilize `unsigned_abs` Resolves #74913. This PR stabilizes the `i*::unsigned_abs()` method, which returns the absolute value of an integer _as its unsigned equivalent_. This has the advantage that it does not overflow on `i*::MIN`. I have gone ahead and used this in a couple locations throughout the repository.
Configuration menu - View commit details
-
Copy full SHA for 61c6022 - Browse repository at this point
Copy the full SHA 61c6022View commit details -
Rollup merge of #81210 - ssomers:btree_fix_node_size_test, r=Mark-Sim…
…ulacrum BTreeMap: correct node size test case for choices of B r? ``````@Mark-Simulacrum``````
Configuration menu - View commit details
-
Copy full SHA for e975db2 - Browse repository at this point
Copy the full SHA e975db2View commit details -
Rollup merge of #81291 - sexxi-goose:fix-struct-update-functional-rec…
…ord-update-syntax-error, r=nikomatsakis Support FRU pattern with `[feature(capture_disjoint_fields)]` In case of a functional record update syntax for creating a structure, `ExprUseVisitor` to only detect the precise use of some of the field in the `..x` part of the syntax. However, when we start building MIR, we 1. First, build the place for `x` 2. and then, add precise field projections so that only some parts of `x` end up getting read. When `capture_disjoint_fields` is enabled, and FRU is used within a closure `x` won't be completely captured, and therefore the first step will fail. This PR updates `mir_build` to create a place builder in the first step and then create place from the builder only after applying the field projection. Closes rust-lang/project-rfc-2229#32 r? ```@nikomatsakis```
Configuration menu - View commit details
-
Copy full SHA for 6c01cb3 - Browse repository at this point
Copy the full SHA 6c01cb3View commit details -
Rollup merge of #81409 - gilescope:chars_count, r=joshtriplett
Slight simplification of chars().count() Slight simplification: No need to call len(), we can just count the number of non continuation bytes. I can't see any reason not to do this, can you?
Configuration menu - View commit details
-
Copy full SHA for 184cb48 - Browse repository at this point
Copy the full SHA 184cb48View commit details -
Rollup merge of #81468 - est31:cfg_version, r=petrochenkov
cfg(version): treat nightlies as complete This PR makes cfg(version) treat the nightlies for version 1.n.0 as 1.n.0, even though that nightly version might not have all stabilizations and features of the released 1.n.0. This is done for greater convenience for people who want to test a newly stabilized feature on nightly, or in other words, give newly stabilized features as many eyeballs as possible. For users who wish to pin nightlies, this commit adds a -Z assume-incomplete-release option that they can enable if they run into any issues due to this change. Implements the suggestion in #64796 (comment)
Configuration menu - View commit details
-
Copy full SHA for 8664344 - Browse repository at this point
Copy the full SHA 8664344View commit details -
Rollup merge of #81472 - Aaron1011:fix/revert-cursor-clone, r=petroch…
…enkov Clone entire `TokenCursor` when collecting tokens Reverts PR #80830 Fixes taiki-e/pin-project#312 We can have an arbitrary number of `None`-delimited group frames pushed on the stack due to proc-macro invocations, which can legally be exited. Attempting to account for this would add a lot of complexity for a tiny performance gain, so let's just use the original strategy.
Configuration menu - View commit details
-
Copy full SHA for 9738fb8 - Browse repository at this point
Copy the full SHA 9738fb8View commit details -
Rollup merge of #81491 - jryans:rustdoc-deref-ice-81395, r=GuillaumeG…
…omez Balance sidebar `Deref` cycle check with main content The `Deref` cycle checks added as part of #80653 were "unbalanced" in the sense that the main content code path checks for cycles _before_ descending, while the sidebar checks _after_. Checking _before_ is correct, so this changes the sidebar path to match the main content path. Fixes #81395 r? ``@GuillaumeGomez``
Configuration menu - View commit details
-
Copy full SHA for 521d96c - Browse repository at this point
Copy the full SHA 521d96cView commit details -
Rollup merge of #81495 - camelid:rustdoc-output_format-optional, r=Gu…
…illaumeGomez rustdoc: Remove unnecessary optional Previously, the HTML output format was represented by both `Some(OutputFormat::Html)` and `None` so there's no need to have an optional. Instead, `OutputFormat::Html` is explicitly the default and we no longer have a "tri-state enum". r? ``@GuillaumeGomez``
Configuration menu - View commit details
-
Copy full SHA for 8bb46c9 - Browse repository at this point
Copy the full SHA 8bb46c9View commit details -
Rollup merge of #81499 - SOF3:patch-1, r=sanxiyn
Updated Vec::splice documentation Replacing with equal number of values does not increase the length of the vec. Reference: https://stackoverflow.com/a/62559271/3990767
Configuration menu - View commit details
-
Copy full SHA for 85db39f - Browse repository at this point
Copy the full SHA 85db39fView commit details -
Rollup merge of #81512 - GuillaumeGomez:cleanup-fixme-rustdoc, r=buga…
…dani Add missing variants in match binding cc ``@bugadani`` ``@CraftSpider`` r? ``@camelid``
Configuration menu - View commit details
-
Copy full SHA for cf02fc0 - Browse repository at this point
Copy the full SHA cf02fc0View commit details -
Rollup merge of #81515 - eltociear:patch-7, r=jonas-schievink
Fix typo in pat.rs parentesized -> parenthesized
Configuration menu - View commit details
-
Copy full SHA for 051feb6 - Browse repository at this point
Copy the full SHA 051feb6View commit details