-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #90178
Rollup of 9 pull requests #90178
Commits on Jul 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e4b8714 - Browse repository at this point
Copy the full SHA e4b8714View commit details
Commits on Jul 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 778f035 - Browse repository at this point
Copy the full SHA 778f035View commit details
Commits on Jul 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e7fa070 - Browse repository at this point
Copy the full SHA e7fa070View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b21ea2 - Browse repository at this point
Copy the full SHA 0b21ea2View commit details -
* dirs-sys v0.3.4 -> v0.3.6 to drop a lot of deps regex v1.3.1 -> v1.4.3 drops thread_local 0.3.6 bytecount v0.6.0 -> v0.6.2 replaces packed_simd with packed_simd_2 ignore v0.4.11 -> v0.4.17 drop crossbeam-channel v0.4.0 * itertools 8.0 -> 9.0 bump `ignore` version in Cargo.toml * cargo_metadata 0.8 -> 0.12 * env_logger 0.6 -> 0.8
Configuration menu - View commit details
-
Copy full SHA for 8c52aae - Browse repository at this point
Copy the full SHA 8c52aaeView commit details
Commits on Jul 29, 2021
-
rfc3052: Remove authors field from Cargo manifests
Since RFC 3052 soft deprecated the authors field anyway, hiding it from crates.io, docs.rs, and making Cargo not add it by default, and it is not generally up to date/useful information, we should remove it from crates in this repo.
Configuration menu - View commit details
-
Copy full SHA for e9038b8 - Browse repository at this point
Copy the full SHA e9038b8View commit details
Commits on Jul 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8cbee56 - Browse repository at this point
Copy the full SHA 8cbee56View commit details
Commits on Aug 2, 2021
-
Auto merge of rust-lang#87535 - lf-:authors, r=Mark-Simulacrum
rfc3052 followup: Remove authors field from Cargo manifests Since RFC 3052 soft deprecated the authors field, hiding it from crates.io, docs.rs, and making Cargo not add it by default, and it is not generally up to date/useful information for contributors, we may as well remove it from crates in this repo.
Configuration menu - View commit details
-
Copy full SHA for 2323cbc - Browse repository at this point
Copy the full SHA 2323cbcView commit details
Commits on Aug 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for fefb542 - Browse repository at this point
Copy the full SHA fefb542View commit details
Commits on Aug 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5d8eb8d - Browse repository at this point
Copy the full SHA 5d8eb8dView commit details
Commits on Aug 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1d6002a - Browse repository at this point
Copy the full SHA 1d6002aView commit details
Commits on Aug 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 64bf8df - Browse repository at this point
Copy the full SHA 64bf8dfView commit details
Commits on Aug 16, 2021
-
Document private items for rustfmt
This is possible now that rustdoc allows passing `--document-private-items` more than once.
Configuration menu - View commit details
-
Copy full SHA for 7769ed0 - Browse repository at this point
Copy the full SHA 7769ed0View commit details
Commits on Aug 17, 2021
-
Auto merge of rust-lang#87119 - jyn514:rustfmt-doc-private, r=Mark-Si…
…mulacrum Document private items for rustfmt This is possible now that rust-lang#73936 has been merged.
Configuration menu - View commit details
-
Copy full SHA for e1dac88 - Browse repository at this point
Copy the full SHA e1dac88View commit details
Commits on Aug 18, 2021
-
Fix stable toggle on gh pages configuration site
A demonstration of the fix is included in the PR associated with this commit.
Configuration menu - View commit details
-
Copy full SHA for 667a2da - Browse repository at this point
Copy the full SHA 667a2daView commit details -
Show configs from different versions on github pages
See https://gushiermainecoon.htmlpasta.com/ for a demo of this change. Part of rust-lang#4178
Configuration menu - View commit details
-
Copy full SHA for 6959d03 - Browse repository at this point
Copy the full SHA 6959d03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 916c238 - Browse repository at this point
Copy the full SHA 916c238View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1045c62 - Browse repository at this point
Copy the full SHA 1045c62View commit details -
Adds direct linking using header ids (rust-lang#4272)
Separates out search and direct linking, uses header ids for direct linking and `?search=term` for filtering configurations. Once the app mounts the page is scrolled to the current header set in the url hash.
Configuration menu - View commit details
-
Copy full SHA for c5f1d96 - Browse repository at this point
Copy the full SHA c5f1d96View commit details -
Adds query param for version no (rust-lang#4270)
* Adds query param for version no This adds support for using a query parameter for selecting the version no * Adds error handling to configuration request Catch request exception in case fetching the configuration from the url fails, this can happen either if non existent version number is passed in or because of server issues. * Makes version selection better Covers a few common cases in which the version number can be specified.
Configuration menu - View commit details
-
Copy full SHA for 31c97ce - Browse repository at this point
Copy the full SHA 31c97ceView commit details -
docs: Preserve updated query param content and add config option links
- Preserve search and version parameter updates in the url - Render headings with an anchor to itself for easier linking to config options, variants, etc. Demo: https://5efeb81ca3f0d.htmlsave.net/
Configuration menu - View commit details
-
Copy full SHA for 3195d6c - Browse repository at this point
Copy the full SHA 3195d6cView commit details -
Ensure that doc url hash IDs are scrolled to on page load
I broke this a few weeks ago so I'll fix it Demo: https://5f0fa445faca4aff5f580029--naughty-borg-09b903.netlify.app/?version=master&search=#brace_style
Configuration menu - View commit details
-
Copy full SHA for bf47fc1 - Browse repository at this point
Copy the full SHA bf47fc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c782f - Browse repository at this point
Copy the full SHA f5c782fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c7ac69 - Browse repository at this point
Copy the full SHA 5c7ac69View commit details -
Exluding v0.8.1 and v0.7 from the config dropdown
Older tags of the repo don't have the configuration.md file that the docs/index.html file uses to display configuration options. Removing them from the list since they don't apply to the use case of the documentation page.
Configuration menu - View commit details
-
Copy full SHA for 3c36a0c - Browse repository at this point
Copy the full SHA 3c36a0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 042c2ec - Browse repository at this point
Copy the full SHA 042c2ecView commit details -
Signed-off-by: gunadhya <6939749+gunadhya@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ec86cfd - Browse repository at this point
Copy the full SHA ec86cfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f787288 - Browse repository at this point
Copy the full SHA f787288View commit details
Commits on Aug 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 25ebc35 - Browse repository at this point
Copy the full SHA 25ebc35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bc0dbe - Browse repository at this point
Copy the full SHA 9bc0dbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8bd550 - Browse repository at this point
Copy the full SHA c8bd550View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd6b025 - Browse repository at this point
Copy the full SHA fd6b025View commit details
Commits on Aug 24, 2021
-
Stabilise unix_process_await_more, extra ExitStatusExt methods
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for c4d4699 - Browse repository at this point
Copy the full SHA c4d4699View commit details
Commits on Aug 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e81c393 - Browse repository at this point
Copy the full SHA e81c393View commit details
Commits on Aug 27, 2021
-
- [x] Removed `?const` and change uses of `?const` - [x] Added `~const` to the AST. It is gated behind const_trait_impl. - [x] Validate `~const` in ast_validation. - [ ] Add enum `BoundConstness` to the HIR. (With variants `NotConst` and `ConstIfConst` allowing future extensions) - [ ] Adjust trait selection and pre-existing code to use `BoundConstness`. - [ ] Optional steps (*for this PR, obviously*) - [ ] Fix rust-lang#88155 - [ ] Do something with constness bounds in chalk
Configuration menu - View commit details
-
Copy full SHA for 076916f - Browse repository at this point
Copy the full SHA 076916fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20ddab3 - Browse repository at this point
Copy the full SHA 20ddab3View commit details
Commits on Aug 31, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a603756 - Browse repository at this point
Copy the full SHA a603756View commit details -
Implement
One
option for imports_granularity (rust-lang#4669)This option merges all imports into a single `use` statement as long as they have the same visibility.
Configuration menu - View commit details
-
Copy full SHA for ca9b050 - Browse repository at this point
Copy the full SHA ca9b050View commit details
Commits on Sep 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c71c68c - Browse repository at this point
Copy the full SHA c71c68cView commit details
Commits on Sep 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d19f69c - Browse repository at this point
Copy the full SHA d19f69cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33d1368 - Browse repository at this point
Copy the full SHA 33d1368View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfc6046 - Browse repository at this point
Copy the full SHA bfc6046View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae5696a - Browse repository at this point
Copy the full SHA ae5696aView commit details -
Detect bare blocks with type ascription that were meant to be a `stru…
…ct` literal Address part of rust-lang#34255. Potential improvement: silence the other knock down errors in `issue-34255-1.rs`.
Configuration menu - View commit details
-
Copy full SHA for 48b8e45 - Browse repository at this point
Copy the full SHA 48b8e45View commit details
Commits on Sep 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1674eea - Browse repository at this point
Copy the full SHA 1674eeaView commit details
Commits on Sep 6, 2021
-
Auto merge of rust-lang#88493 - chenyukang:fix-duplicated-diagnostic,…
… r=estebank Fix rust-lang#88256 remove duplicated diagnostics Fix rust-lang#88256
Configuration menu - View commit details
-
Copy full SHA for 6271ded - Browse repository at this point
Copy the full SHA 6271dedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59063e8 - Browse repository at this point
Copy the full SHA 59063e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a59cac2 - Browse repository at this point
Copy the full SHA a59cac2View commit details -
try to write the parameter on a new line in case the attribute/parame…
…ter together are over max_width
Configuration menu - View commit details
-
Copy full SHA for c2f0e99 - Browse repository at this point
Copy the full SHA c2f0e99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d8cd57 - Browse repository at this point
Copy the full SHA 3d8cd57View commit details
Commits on Sep 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4dd9b85 - Browse repository at this point
Copy the full SHA 4dd9b85View commit details
Commits on Sep 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 57548aa - Browse repository at this point
Copy the full SHA 57548aaView commit details
Commits on Sep 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a806883 - Browse repository at this point
Copy the full SHA a806883View commit details -
rustfmt doc code blocks with multiple comma-separated attributes
Added test covering this. Chose to treat the code block as rust if and only if all of the comma-separated attributes are rust-valid. Chose to allow/preserve whitespace around commas Fixes rust-lang#3158
Configuration menu - View commit details
-
Copy full SHA for b10ab51 - Browse repository at this point
Copy the full SHA b10ab51View commit details -
Revert "Allow formatting
Anonymous{Struct, Union}
declarations"This reverts commit 64acb7d.
Configuration menu - View commit details
-
Copy full SHA for d647ebf - Browse repository at this point
Copy the full SHA d647ebfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e014277 - Browse repository at this point
Copy the full SHA e014277View commit details
Commits on Sep 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 127ec9a - Browse repository at this point
Copy the full SHA 127ec9aView commit details
Commits on Sep 11, 2021
-
Auto merge of rust-lang#84373 - cjgillot:resolve-span, r=michaelwoeri…
…ster,petrochenkov Encode spans relative to the enclosing item The aim of this PR is to avoid recomputing queries when code is moved without modification. MCP at rust-lang/compiler-team#443 This is achieved by : 1. storing the HIR owner LocalDefId information inside the span; 2. encoding and decoding spans relative to the enclosing item in the incremental on-disk cache; 3. marking a dependency to the `source_span(LocalDefId)` query when we translate a span from the short (`Span`) representation to its explicit (`SpanData`) representation. Since all client code uses `Span`, step 3 ensures that all manipulations of span byte positions actually create the dependency edge between the caller and the `source_span(LocalDefId)`. This query return the actual absolute span of the parent item. As a consequence, any source code motion that changes the absolute byte position of a node will either: - modify the distance to the parent's beginning, so change the relative span's hash; - dirty `source_span`, and trigger the incremental recomputation of all code that depends on the span's absolute byte position. With this scheme, I believe the dependency tracking to be accurate. For the moment, the spans are marked during lowering. I'd rather do this during def-collection, but the AST MutVisitor is not practical enough just yet. The only difference is that we attach macro-expanded spans to their expansion point instead of the macro itself.
Configuration menu - View commit details
-
Copy full SHA for 8743472 - Browse repository at this point
Copy the full SHA 8743472View commit details
Commits on Sep 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 67a59f6 - Browse repository at this point
Copy the full SHA 67a59f6View commit details
Commits on Sep 15, 2021
-
Support @generated marker to skip code formatting
This is a copy of rust-lang#4296 with these changes: * file is not reopened again to find if the file is generated * first five lines are scanned for `@generated` marker instead of one * no attempt is made to only search for marker in comments `@generated` marker is used by certain tools to understand that the file is generated, so it should be treated differently than a file written by a human: * linters should not be invoked on these files, * diffs in these files are less important, * and these files should not be reformatted. This PR proposes builtin support for `@generated` marker. I have not found a standard for a generated file marker, but: * Facebook [uses `@generated` marker](https://tinyurl.com/fb-generated) * Phabricator tool which was spawned from Facebook internal tool [also understands `@generated` marker](https://git.io/JnVHa) * Cargo inserts `@generated` marker into [generated Cargo.lock files](https://git.io/JnVHP) My personal story is that rust-protobuf project which I maintain was broken twice because of incompatibilities/bugs in rustfmt marker handling: [one](stepancheg/rust-protobuf#493), [two](stepancheg/rust-protobuf#551). (Also, rust-protobuf started generating `@generated` marker [6 years ago](https://git.io/JnV5h)). While rustfmt AST markers are useful to apply to a certain AST elements, disable whole-file-at-once all-tools-at-once text level marker might be easier to use and more reliable for generated code.
Configuration menu - View commit details
-
Copy full SHA for d4ffd1e - Browse repository at this point
Copy the full SHA d4ffd1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d65b7d - Browse repository at this point
Copy the full SHA 9d65b7dView commit details -
Rollup merge of rust-lang#88775 - pnkfelix:revert-anon-union-parsing,…
… r=davidtwco Revert anon union parsing Revert PR rust-lang#84571 and rust-lang#85515, which implemented anonymous union parsing in a manner that broke the context-sensitivity for the `union` keyword and thus broke stable Rust code. Fix rust-lang#88583.
Configuration menu - View commit details
-
Copy full SHA for 52e1a52 - Browse repository at this point
Copy the full SHA 52e1a52View commit details
Commits on Sep 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 17cb2b1 - Browse repository at this point
Copy the full SHA 17cb2b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa69e5 - Browse repository at this point
Copy the full SHA 7aa69e5View commit details
Commits on Sep 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for dd445ab - Browse repository at this point
Copy the full SHA dd445abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9060bc5 - Browse repository at this point
Copy the full SHA 9060bc5View commit details
Commits on Sep 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 74df7b3 - Browse repository at this point
Copy the full SHA 74df7b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f6229b - Browse repository at this point
Copy the full SHA 7f6229bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b9d637 - Browse repository at this point
Copy the full SHA 4b9d637View commit details
Commits on Sep 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for cb144c3 - Browse repository at this point
Copy the full SHA cb144c3View commit details
Commits on Sep 27, 2021
-
Prevent removal of qualified path for tuple struct inside macro
fixes 5005 This was very similar to 4964 and the fix was to extract and pass along the qself of the ``PatKind::TupleStruct``
Configuration menu - View commit details
-
Copy full SHA for a5138b3 - Browse repository at this point
Copy the full SHA a5138b3View commit details
Commits on Sep 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e3203ef - Browse repository at this point
Copy the full SHA e3203efView commit details
Commits on Oct 5, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f0f449d - Browse repository at this point
Copy the full SHA f0f449dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0866b96 - Browse repository at this point
Copy the full SHA 0866b96View commit details
Commits on Oct 6, 2021
-
Update derive attibute span to start after opening '('
Fixes 4984 When parsing derive attributes we're only concerned about the traits and comments listed between the opening and closing parentheses. Derive attribute spans currently start at the '#'. Span starts here | v #[derive(...)] After this update the derive spans start after the opening '('. Span starts here | V #[derive(...)]
Configuration menu - View commit details
-
Copy full SHA for 40f4993 - Browse repository at this point
Copy the full SHA 40f4993View commit details -
Configuration menu - View commit details
-
Copy full SHA for 365a2f8 - Browse repository at this point
Copy the full SHA 365a2f8View commit details
Commits on Oct 11, 2021
-
Stabilize match_block_trailing_comma. (rust-lang#4145)
Servo has used this since forever, and it'd be useful to be able to use rustfmt stable there so that we can use the same rustfmt version in both Firefox and Servo. Feel free to close this if there's any reason it shouldn't be done.
Configuration menu - View commit details
-
Copy full SHA for 8b58cce - Browse repository at this point
Copy the full SHA 8b58cceView commit details
Commits on Oct 13, 2021
-
Prevent structs with ".." from being rewritten with alignment
rustfmt should only support rewriting a struct in an expression position with alignment (non-default behavior) when there is no rest (with or without a base) and all of the fields are non-shorthand.
Configuration menu - View commit details
-
Copy full SHA for d418057 - Browse repository at this point
Copy the full SHA d418057View commit details -
Adjust non-empty tuple struct span to start before fields
Resolves 5011 Tuple structs with visibility modifiers and comments before the first field were incorrectly formatted. Comments would duplicate part of the visibility modifier and struct name. When trying to parse the tuple fields the ``items::Context`` searches for the opening '(', but because the visibility modifier introduces another '(' -- for example ``pub(crate)`` -- the parsing gets messed up. Now the span is adjusted to start after the struct identifier, or after any generics. Adjusting the span in this way ensures that the ``items::Contex`` will correctly find the tuple fields.
Configuration menu - View commit details
-
Copy full SHA for f7c4a44 - Browse repository at this point
Copy the full SHA f7c4a44View commit details
Commits on Oct 14, 2021
-
Update connector search in ControlFlow::rewrite_pat_expr for for loops
Resolves 5009 For loops represented by a ControlFlow object use " in" as their connector. rustfmt searches for the first uncommented occurrence of the word "in" within the current span and adjusts it's starting point to look for comments right after that. visually this looks like this: rustfmt starts looking for comments here | V for x in /* ... */ 0..1 {} This works well in most cases, however when the pattern also contains the word "in", this leads to issues. rustfmt starts looking for comments here | V for in_here in /* ... */ 0..1 {} ------- pattern In order to correctly identify the connector, the new approach first updates the span to start after the pattern and then searches for the first uncommented occurrence of "in".
Configuration menu - View commit details
-
Copy full SHA for f2fb3c9 - Browse repository at this point
Copy the full SHA f2fb3c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9c1932 - Browse repository at this point
Copy the full SHA c9c1932View commit details
Commits on Oct 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a9a1393 - Browse repository at this point
Copy the full SHA a9a1393View commit details
Commits on Oct 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0cff306 - Browse repository at this point
Copy the full SHA 0cff306View commit details -
Handle DefinitiveListTactic::SpecialMacro when writing pre-comments
Resolves 4615 Previously only Vertical and Mixed enum variants of DefinitiveListTactic were considered when rewriting pre-comments for inner items in lists::write_list. Because we failed to considering the SpecialMacro variant we ended up in a scenario where a ListItem with a pre_comment and a pre_comment_style of ListItemCommentStyle::DifferentLine was written on the same line as the list item itself. Now we apply the same pre-comment formatting to SpecialMacro, Vertical, and Mixed variants of DefinitiveListTactic.
Configuration menu - View commit details
-
Copy full SHA for 5f4811e - Browse repository at this point
Copy the full SHA 5f4811eView commit details
Commits on Oct 19, 2021
-
Replace match expression with match! macro
This is a follow up to 5f4811e The matches! macro expresses the condition more succinctly and avoids the extra level of indentation introduced with the match arm body.
Configuration menu - View commit details
-
Copy full SHA for 1ae5c35 - Browse repository at this point
Copy the full SHA 1ae5c35View commit details
Commits on Oct 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9231263 - Browse repository at this point
Copy the full SHA 9231263View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f79583 - Browse repository at this point
Copy the full SHA 5f79583View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9178dc - Browse repository at this point
Copy the full SHA b9178dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for efa8f55 - Browse repository at this point
Copy the full SHA efa8f55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 714e904 - Browse repository at this point
Copy the full SHA 714e904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0697f56 - Browse repository at this point
Copy the full SHA 0697f56View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3ecb02 - Browse repository at this point
Copy the full SHA d3ecb02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65b3c85 - Browse repository at this point
Copy the full SHA 65b3c85View commit details
Commits on Oct 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e1d94b8 - Browse repository at this point
Copy the full SHA e1d94b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8090f67 - Browse repository at this point
Copy the full SHA 8090f67View commit details -
Configuration menu - View commit details
-
Copy full SHA for b802629 - Browse repository at this point
Copy the full SHA b802629View commit details -
Configuration menu - View commit details
-
Copy full SHA for 170214f - Browse repository at this point
Copy the full SHA 170214fView commit details
Commits on Oct 22, 2021
-
Make RSplit<T, P>: Clone not require T: Clone
This addresses a TODO comment. The behavior of #[derive(Clone)] *does* result in a T: Clone requirement. Add a manual Clone implementation, matching Split and SplitInclusive.
Configuration menu - View commit details
-
Copy full SHA for afcee19 - Browse repository at this point
Copy the full SHA afcee19View commit details -
Implement split_array and split_array_mut
Jethro Beekman committedOct 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 4a43976 - Browse repository at this point
Copy the full SHA 4a43976View commit details -
Add comment documenting why we can't use a simpler solution
See rust-lang#90144 for context. r? @joshtriplett
Configuration menu - View commit details
-
Copy full SHA for c736c2a - Browse repository at this point
Copy the full SHA c736c2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d7ebf8 - Browse repository at this point
Copy the full SHA 7d7ebf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ed5665 - Browse repository at this point
Copy the full SHA 2ed5665View commit details -
Rollup merge of rust-lang#83233 - jethrogb:split_array, r=yaahc
Implement split_array and split_array_mut This implements `[T]::split_array::<const N>() -> (&[T; N], &[T])` and `[T; N]::split_array::<const M>() -> (&[T; M], &[T])` and their mutable equivalents. These are another few “missing” array implementations now that const generics are a thing, similar to rust-lang#74373, rust-lang#75026, etc. Fixes rust-lang#74674. This implements `[T; N]::split_array` returning an array and a slice. Ultimately, this is probably not what we want, we would want the second return value to be an array of length N-M, which will likely be possible with future const generics enhancements. We need to implement the array method now though, to immediately shadow the slice method. This way, when the slice methods get stabilized, calling them on an array will not be automatic through coercion, so we won't have trouble stabilizing the array methods later (cf. into_iter debacle). An unchecked version of `[T]::split_array` could also be added as in rust-lang#76014. This would not be needed for `[T; N]::split_array` as that can be compile-time checked. Edit: actually, since split_at_unchecked is internal-only it could be changed to be split_array-only.
Configuration menu - View commit details
-
Copy full SHA for aa9a445 - Browse repository at this point
Copy the full SHA aa9a445View commit details -
Rollup merge of rust-lang#88300 - ijackson:exitstatusext-methods, r=y…
…aahc Stabilise unix_process_wait_more, extra ExitStatusExt methods This stabilises the feature `unix_process_wait_more`. Tracking issue rust-lang#80695, FCP needed. This was implemented in rust-lang#79982 and merged in January.
Configuration menu - View commit details
-
Copy full SHA for 3aaca74 - Browse repository at this point
Copy the full SHA 3aaca74View commit details -
Rollup merge of rust-lang#88728 - orlp:float-next-up-down, r=yaahc
Added next_up and next_down for f32/f64. This is a pull request implementing the features described at rust-lang/rfcs#3173.
Configuration menu - View commit details
-
Copy full SHA for 5019387 - Browse repository at this point
Copy the full SHA 5019387View commit details -
Rollup merge of rust-lang#89730 - crlf0710:type_changing_feature, r=j…
…ackh726 add feature flag for `type_changing_struct_update` This implements the PR0 part of the mentoring notes within rust-lang#86618. overrides the previous inactive rust-lang#86646 pr. r? ``@nikomatsakis``
Configuration menu - View commit details
-
Copy full SHA for cdb03f3 - Browse repository at this point
Copy the full SHA cdb03f3View commit details -
Rollup merge of rust-lang#89920 - hudson-ayers:location-detail-contro…
…l, r=davidtwco Implement -Z location-detail flag This PR implements the `-Z location-detail` flag as described in rust-lang/rfcs#2091 . `-Z location-detail=val` controls what location details are tracked when using `caller_location`. This allows users to control what location details are printed as part of panic messages, by allowing them to exclude any combination of filenames, line numbers, and column numbers. This option is intended to provide users with a way to mitigate the size impact of `#[track_caller]`. Some measurements of the savings of this approach on an embedded binary can be found here: rust-lang#70579 (comment) . Closes rust-lang#70580 (unless people want to leave that open as a place for discussion of further improvements). This is my first real PR to rust, so any help correcting mistakes / understanding side effects / improving my tests is appreciated :) I have one question: RFC 2091 specified this as a debugging option (I think that is what -Z implies?). Does that mean this can never be stabilized without a separate MCP? If so, do I need to submit an MCP now, or is the initial RFC specifying this option sufficient for this to be merged as is, and then an MCP would be needed for eventual stabilization?
Configuration menu - View commit details
-
Copy full SHA for 51a74a0 - Browse repository at this point
Copy the full SHA 51a74a0View commit details -
Rollup merge of rust-lang#90070 - llogiq:compiletest-config-edition, …
…r=Mark-Simulacrum Add edition configuration to compiletest This allows the compiletest configuration to set a default edition that can still be overridden with header annotations. Doing this will make it far easier for clippy to get our tests to the newest edition. r? ``@Manishearth``
Configuration menu - View commit details
-
Copy full SHA for dce8768 - Browse repository at this point
Copy the full SHA dce8768View commit details -
Rollup merge of rust-lang#90087 - calebcartwright:rustfmt-subtree, r=…
…calebcartwright Sync rustfmt subtree There's a large number of small fixes and new features, but nothing too big. Detailed changelog for those interested can be found in https://github.com/rust-lang/rustfmt/blob/master/CHANGELOG.md#1438-2021-10-20
Configuration menu - View commit details
-
Copy full SHA for 1653940 - Browse repository at this point
Copy the full SHA 1653940View commit details -
Rollup merge of rust-lang#90117 - calebsander:fix/rsplit-clone, r=yaahc
Make RSplit<T, P>: Clone not require T: Clone This addresses a TODO comment. The behavior of `#[derive(Clone)]` *does* result in a `T: Clone` requirement. Playground example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a8b1a9581ff8893baf401d624a53d35b Add a manual `Clone` implementation, mirroring `Split` and `SplitInclusive`. `(R)?SplitN(Mut)?` don't have any `Clone` implementations, but I'll leave that for its own pull request.
Configuration menu - View commit details
-
Copy full SHA for 73c0bff - Browse repository at this point
Copy the full SHA 73c0bffView commit details -
Rollup merge of rust-lang#90166 - smmalis37:patch-1, r=joshtriplett
Add comment documenting why we can't use a simpler solution See rust-lang#90144 for context. r? ``@joshtriplett``
Configuration menu - View commit details
-
Copy full SHA for 0375880 - Browse repository at this point
Copy the full SHA 0375880View commit details