-
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 12 pull requests #76265
Rollup of 12 pull requests #76265
Commits on Aug 30, 2020
-
These methods are like the ones on `std::array::FixedSizeArray` and in the crate `arraytools`.
Configuration menu - View commit details
-
Copy full SHA for 104a023 - Browse repository at this point
Copy the full SHA 104a023View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7afe2a - Browse repository at this point
Copy the full SHA d7afe2aView commit details
Commits on Aug 31, 2020
-
Make more Ipv4Addr methods const
Constify the following methods of `std::net::Ipv4Addr`: - `octets` - `is_loopback` - `is_private` - `is_link_local` - `is_shared` - `is_ietf_protocol_assignment` - `is_benchmarking` - `is_multicast` - `is_documentation` Also insta-stabilizes these methods as const. Possible because of the stabilization of const integer arithmetic and control flow.
CDirkx committedAug 31, 2020 Configuration menu - View commit details
-
Copy full SHA for fbb3673 - Browse repository at this point
Copy the full SHA fbb3673View commit details -
Configuration menu - View commit details
-
Copy full SHA for a74d4e4 - Browse repository at this point
Copy the full SHA a74d4e4View commit details
Commits on Sep 1, 2020
-
Make methods unstable const under
const_ipv4
CDirkx committedSep 1, 2020 Configuration menu - View commit details
-
Copy full SHA for ee9e48b - Browse repository at this point
Copy the full SHA ee9e48bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 770231e - Browse repository at this point
Copy the full SHA 770231eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb64e6d - Browse repository at this point
Copy the full SHA fb64e6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0af125 - Browse repository at this point
Copy the full SHA d0af125View commit details -
Make all remaining methods of
std::net::Ipv4Addr
constMakes the following methods of `std::net::Ipv4Addr` unstable const under the `const_ipv4` feature: - `is_global` - `is_reserved` - `is_broadcast` - `to_ipv6_compatible` - `to_ipv6_mapped` This results in all methods of `Ipv4Addr` being const. Also adds tests for these methods in a const context.
Configuration menu - View commit details
-
Copy full SHA for 0c77257 - Browse repository at this point
Copy the full SHA 0c77257View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07cd4c8 - Browse repository at this point
Copy the full SHA 07cd4c8View commit details
Commits on Sep 2, 2020
-
inliner: Avoid query cycles when optimizing generators
The HIR Id trick is insufficient to prevent query cycles when optimizing generators, since merely requesting a layout of a generator also computes its `optimized_mir`. Make no attempts to inline functions into generators within the same crate to avoid query cycles.
Configuration menu - View commit details
-
Copy full SHA for 6c51ec9 - Browse repository at this point
Copy the full SHA 6c51ec9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0af3bd0 - Browse repository at this point
Copy the full SHA 0af3bd0View commit details -
Fix typos in vec try_reserve(_exact) docs
`try_reserve` and `try_reserve_exact` docs refer to calling `reserve` and `reserve_exact`. `try_reserve_exact` example uses `try_reserve` method instead of `try_reserve_exact`.
Configuration menu - View commit details
-
Copy full SHA for b670064 - Browse repository at this point
Copy the full SHA b670064View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbe50f5 - Browse repository at this point
Copy the full SHA dbe50f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b29913 - Browse repository at this point
Copy the full SHA 3b29913View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cf0fe1 - Browse repository at this point
Copy the full SHA 7cf0fe1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a438bb - Browse repository at this point
Copy the full SHA 1a438bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a03589 - Browse repository at this point
Copy the full SHA 3a03589View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83143a1 - Browse repository at this point
Copy the full SHA 83143a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89e7fb3 - Browse repository at this point
Copy the full SHA 89e7fb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c012487 - Browse repository at this point
Copy the full SHA c012487View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96eb5e1 - Browse repository at this point
Copy the full SHA 96eb5e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2908ed6 - Browse repository at this point
Copy the full SHA 2908ed6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7926435 - Browse repository at this point
Copy the full SHA 7926435View commit details
Commits on Sep 3, 2020
-
Rollup merge of rust-lang#75150 - nanpuyue:deprecate_to_ipv6_compatib…
…le, r=LukasKalbertodt Add a note for Ipv4Addr::to_ipv6_compatible Previous discussion: rust-lang#75019 > I think adding a comment saying "This isn't typically the method you want; these addresses don't typically function on modern systems. Use `to_ipv6_mapped` instead." would be a good first step, whether this method gets marked as deprecated or not. _Originally posted by @joshtriplett in rust-lang#75150 (comment)
Configuration menu - View commit details
-
Copy full SHA for 536b0c0 - Browse repository at this point
Copy the full SHA 536b0c0View commit details -
Rollup merge of rust-lang#76120 - LukasKalbertodt:add-as-slice-method…
…-to-array, r=Mark-Simulacrum Add `[T; N]::as_[mut_]slice` Part of me trying to populate arrays with a couple of basic useful methods, like slices already have. The ability to add methods to arrays were added in rust-lang#75212. Tracking issue: rust-lang#76118 This adds: ```rust impl<T, const N: usize> [T; N] { pub fn as_slice(&self) -> &[T]; pub fn as_mut_slice(&mut self) -> &mut [T]; } ``` These methods are like the ones on `std::array::FixedSizeArray` and in the crate `arraytools`.
Configuration menu - View commit details
-
Copy full SHA for 10aa3d3 - Browse repository at this point
Copy the full SHA 10aa3d3View commit details -
Rollup merge of rust-lang#76142 - CDirkx:const-ip, r=ecstatic-morse
Make all methods of `std::net::Ipv4Addr` const Make the following methods of `std::net::Ipv4Addr` unstable const under the `const_ipv4` feature: - `octets` - `is_loopback` - `is_private` - `is_link_local` - `is_global` (unstable) - `is_shared` (unstable) - `is_ietf_protocol_assignment` (unstable) - `is_benchmarking` (unstable) - `is_reserved` (unstable) - `is_multicast` - `is_broadcast` - `is_documentation` - `to_ipv6_compatible` - `to_ipv6_mapped` This would make all methods of `Ipv6Addr` const. Of these methods, `is_global`, `is_broadcast`, `to_ipv6_compatible`, and `to_ipv6_mapped` require a change in implementation. Part of rust-lang#76205
Configuration menu - View commit details
-
Copy full SHA for 9605f94 - Browse repository at this point
Copy the full SHA 9605f94View commit details -
Rollup merge of rust-lang#76164 - lzutao:slice-array, r=ehuss
Link to slice pattern in array docs Fix a todo in rust-lang/reference#739 (comment)
Configuration menu - View commit details
-
Copy full SHA for 3e156cf - Browse repository at this point
Copy the full SHA 3e156cfView commit details -
Rollup merge of rust-lang#76167 - mati865:mingw-self-contained-heuris…
…tic, r=petrochenkov Replace MinGW library hack with heuristic controlling link mode Depends on rust-lang#76158 Closes rust-lang#68887
Configuration menu - View commit details
-
Copy full SHA for a4e30a6 - Browse repository at this point
Copy the full SHA a4e30a6View commit details -
Rollup merge of rust-lang#76204 - NoraCodes:nora/control_flow_enum, r…
…=scottmcm Rename and expose LoopState as ControlFlow Basic PR for rust-lang#75744. Addresses everything there except for documentation; lots of examples are probably a good idea.
Configuration menu - View commit details
-
Copy full SHA for d059f26 - Browse repository at this point
Copy the full SHA d059f26View commit details -
Rollup merge of rust-lang#76238 - denisvasilik:intra-doc-links-core-i…
…terator, r=jyn514 Move to intra-doc links for library/core/src/iter/traits/iterator.rs Helps with rust-lang#75080. @jyn514 We're almost finished with this issue. Thanks for mentoring. If you have other topics to work on just let me know, I will be around in Discord. @rustbot modify labels: T-doc, A-intra-doc-links Known issues: * Link from `core` to `std` (rust-lang#74481): [`OsStr`] [`String`] [`VecDeque<T>`]
Configuration menu - View commit details
-
Copy full SHA for 4918ed9 - Browse repository at this point
Copy the full SHA 4918ed9View commit details -
Rollup merge of rust-lang#76242 - RalfJung:read-fixme, r=Dylan-DPC
Read: adjust a FIXME reference There's already another reference to rust-lang#42788 for basically the same problem, so lets reuse it here: https://github.com/rust-lang/rust/blob/5e208efaa850efaa97495e81c49cf0f5767e8f49/library/std/src/io/mod.rs#L369-L376 r? @Dylan-DPC
Configuration menu - View commit details
-
Copy full SHA for 6d2b885 - Browse repository at this point
Copy the full SHA 6d2b885View commit details -
Rollup merge of rust-lang#76243 - ama0:patch-1, r=jonas-schievink
Fix typos in vec try_reserve(_exact) docs `try_reserve` and `try_reserve_exact` docs refer to calling `reserve` and `reserve_exact`. `try_reserve_exact` example uses `try_reserve` method instead of `try_reserve_exact`.
Configuration menu - View commit details
-
Copy full SHA for 3368f5c - Browse repository at this point
Copy the full SHA 3368f5cView commit details -
Rollup merge of rust-lang#76245 - tmiasko:inline-generators, r=ecstat…
…ic-morse inliner: Avoid query cycles when optimizing generators The HIR Id trick is insufficient to prevent query cycles when optimizing generators, since merely requesting a layout of a generator also computes its `optimized_mir`. Make no attempts to inline functions into generators within the same crate to avoid query cycles. Fixes rust-lang#76181.
Configuration menu - View commit details
-
Copy full SHA for cd68293 - Browse repository at this point
Copy the full SHA cd68293View commit details -
Rollup merge of rust-lang#76255 - ehuss:update-books, r=ehuss
Update books ## reference 4 commits in 1b6c4b0afab97c0230433466c97167bbbe8445f6..25391dba46262f882fa846beefaff54a966a8fa5 2020-08-18 17:04:28 -0700 to 2020-09-02 07:22:55 -0700 - clarify when reading uninititalized memory is allowed (rust-lang/reference#852) - Update patterns chapter, add rest patterns. (rust-lang/reference#876) - Improve Type-Coersion Documentation (rust-lang/reference#843) - Added variable back into example. (rust-lang/reference#880) ## book 3 commits in c0a6a61b8205da14ac955425f74258ffd8ee065d..e5ed97128302d5fa45dbac0e64426bc7649a558c 2020-08-14 14:21:49 -0500 to 2020-08-31 12:53:40 -0500 - Fix type mismatch in listing 10-5 (rust-lang/book#2441) - Update ppendix-06-translation.md (rust-lang/book#2437) - Correct no-listing-10-result-in-tests: Take tests module out of the main function (rust-lang/book#2430) ## rust-by-example 3 commits in 80a10e22140e28392b99d24ed02f4c6d8cb770a0..19f0a0372af497b34369cf182d9d16156cab2969 2020-08-08 09:56:46 -0300 to 2020-08-26 09:38:48 -0300 - prefer `length` over `size` when talking about number of elements vs. bytesize (rust-lang/rust-by-example#1372) - Split out variable shadowing into a separate example (rust-lang/rust-by-example#1370) - Update extern crate related sections (rust-lang/rust-by-example#1369) ## edition-guide 1 commits in bd6e4a9f59c5c1545f572266af77f5c7a5bad6d1..81f16863014de60b53de401d71ff904d163ee030 2020-07-12 17:37:08 -0500 to 2020-08-27 13:56:31 -0700 - Fix a small typo. (rust-lang/edition-guide#218)
Configuration menu - View commit details
-
Copy full SHA for 1f7ff67 - Browse repository at this point
Copy the full SHA 1f7ff67View commit details -
Rollup merge of rust-lang#76261 - camelid:intra-doc-links-for-core-ma…
…rker, r=jyn514 Use intra-doc links in `core::marker` Part of rust-lang#75080. Also cleaned up a few things. --- @rustbot modify labels: A-intra-doc-links T-doc
Configuration menu - View commit details
-
Copy full SHA for af331a2 - Browse repository at this point
Copy the full SHA af331a2View commit details