-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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 10 pull requests #76129
Rollup of 10 pull requests #76129
Commits on Aug 25, 2020
-
Configuration menu - View commit details
-
Copy full SHA for acd3962 - Browse repository at this point
Copy the full SHA acd3962View commit details
Commits on Aug 28, 2020
-
Use intra-doc links for
core/src/slice.mod.rs
- most are using primitive types links, which cannot be used with intra links at the moment - also `std` cannot be referenced in any link
Configuration menu - View commit details
-
Copy full SHA for 91e4aaa - Browse repository at this point
Copy the full SHA 91e4aaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e33137 - Browse repository at this point
Copy the full SHA 8e33137View commit details -
Configuration menu - View commit details
-
Copy full SHA for a04e120 - Browse repository at this point
Copy the full SHA a04e120View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6aae4a2 - Browse repository at this point
Copy the full SHA 6aae4a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d6ab12 - Browse repository at this point
Copy the full SHA 2d6ab12View commit details -
reference counted pointer -> reference-counted pointer
Configuration menu - View commit details
-
Copy full SHA for 7be129e - Browse repository at this point
Copy the full SHA 7be129eView commit details
Commits on Aug 29, 2020
-
Liballoc vec doc use associated function
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Configuration menu - View commit details
-
Copy full SHA for c7e428e - Browse repository at this point
Copy the full SHA c7e428eView commit details
Commits on Aug 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8a92718 - Browse repository at this point
Copy the full SHA 8a92718View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01d95f2 - Browse repository at this point
Copy the full SHA 01d95f2View commit details -
Fix intra-doc path resolution problem in
library/alloc/src/slice.rs
`alloc::slice` uses `core::slice` functions, documentation are copied from there and the links as well without resolution. `crate::ptr...` cannot be resolved in `alloc::slice`, but `ptr` itself is imported in both `alloc::slice` and `core::slice`, so we used that instead.
Configuration menu - View commit details
-
Copy full SHA for 300a007 - Browse repository at this point
Copy the full SHA 300a007View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ea4c28 - Browse repository at this point
Copy the full SHA 7ea4c28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 523fea4 - Browse repository at this point
Copy the full SHA 523fea4View commit details -
Run cfg-stripping on generic parameters before invoking derive macros
Fixes rust-lang#75930 This changes the tokens seen by a proc-macro. However, ising a `#[cfg]` attribute on a generic paramter is unusual, and combining it with a proc-macro derive is probably even more unusual. I don't expect this to cause any breakage.
Configuration menu - View commit details
-
Copy full SHA for a97dcfa - Browse repository at this point
Copy the full SHA a97dcfaView commit details -
Move lexer unit tests to rustc_lexer
StringReader is an intornal abstraction which at the moment changes a lot, so these unit tests cause quite a bit of friction. Moving them to rustc_lexer and more ingerated-testing style should make them much less annoying, hopefully without decreasing their usefulness much. Note that coloncolon tests are removed (it's unclear what those are testing). \r\n tests are removed as well, as we normalize line endings even before lexing.
Configuration menu - View commit details
-
Copy full SHA for ccffea5 - Browse repository at this point
Copy the full SHA ccffea5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 518cac9 - Browse repository at this point
Copy the full SHA 518cac9View commit details -
This commit removes the obsolete printer and replaces all uses of it with `FmtPrinter`. Of the replaced uses, all but one use was in `debug!` logging, two cases were notable: - `MonoItem::to_string` is used in `-Z print-mono-items` and therefore affects the output of all codegen-units tests. - `DefPathBasedNames` was used in `librustc_codegen_llvm/type_of.rs` with `LLVMStructCreateNamed` and that'll now get different values, but this should result in no functional change. Signed-off-by: David Wood <david@davidtw.co>
Configuration menu - View commit details
-
Copy full SHA for 6ff471b - Browse repository at this point
Copy the full SHA 6ff471bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dfbf59 - Browse repository at this point
Copy the full SHA 7dfbf59View commit details -
Add (non-public) slice::split_at_unchecked() and split_at_mut_uncheck…
…ed() These are unsafe variants of the non-unchecked functions and don't do any bounds checking. For the time being these are not public and only a preparation for the following commit. Making it public and stabilization can follow later and be discussed in rust-lang#76014 .
Configuration menu - View commit details
-
Copy full SHA for 30dc32b - Browse repository at this point
Copy the full SHA 30dc32bView commit details -
Get rid of bounds check in slice::chunks_exact() and related function…
…s during construction LLVM can't figure out in let rem = self.len() % chunk_size; let len = self.len() - rem; let (fst, snd) = self.split_at(len); and let rem = self.len() % chunk_size; let (fst, snd) = self.split_at(rem); that the index passed to split_at() is smaller than the slice length and adds a bounds check plus panic for it. Apart from removing the overhead of the bounds check this also allows LLVM to optimize code around the ChunksExact iterator better.
Configuration menu - View commit details
-
Copy full SHA for d08996a - Browse repository at this point
Copy the full SHA d08996aView commit details -
Improve documentation of slice::get_unchecked() / split_at_unchecked()
Thanks to Ivan Tham, who gave the majority of these suggestions during their review.
Configuration menu - View commit details
-
Copy full SHA for 8d3cf92 - Browse repository at this point
Copy the full SHA 8d3cf92View commit details -
Rollup merge of rust-lang#74668 - petrochenkov:noname, r=mark-i-m
cleanup: Remove duplicate library names from `Cargo.toml`s
Configuration menu - View commit details
-
Copy full SHA for 096b49c - Browse repository at this point
Copy the full SHA 096b49cView commit details -
Rollup merge of rust-lang#75926 - camelid:patch-5, r=jonas-schievink
Fix typo in release notes
Configuration menu - View commit details
-
Copy full SHA for 74d6b94 - Browse repository at this point
Copy the full SHA 74d6b94View commit details -
Rollup merge of rust-lang#75932 - Amjad50:intra-doc-core-slice, r=jyn514
Use intra-doc links for `core/src/slice.mod.rs` partial help in rust-lang#75080 r? @jyn514 - most are using primitive types links, which cannot be used with intra links at the moment - also `std` cannot be referenced in any link, `std::ptr::NonNull` and `std::slice` could not be referenced
Configuration menu - View commit details
-
Copy full SHA for 213116f - Browse repository at this point
Copy the full SHA 213116fView commit details -
Rollup merge of rust-lang#75936 - sdroege:chunks-exact-construction-b…
…ounds-check, r=nagisa Get rid of bounds check in slice::chunks_exact() and related function… …s during construction LLVM can't figure out in let rem = self.len() % chunk_size; let len = self.len() - rem; let (fst, snd) = self.split_at(len); and let rem = self.len() % chunk_size; let (fst, snd) = self.split_at(rem); that the index passed to split_at() is smaller than the slice length and adds a bounds check plus panic for it. Apart from removing the overhead of the bounds check this also allows LLVM to optimize code around the ChunksExact iterator better.
Configuration menu - View commit details
-
Copy full SHA for 7919f05 - Browse repository at this point
Copy the full SHA 7919f05View commit details -
Rollup merge of rust-lang#75969 - nixphix:docs/mod, r=jyn514
Switch to intra-doc links in core/src/{convert,iter}/mod.rs Partial fix for rust-lang#75080 @rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc r? @jyn514 couldn't fix these ```rust ../../std/string/struct.String.html ../../std/primitive.never.html ../../std/sync/mpsc/struct.TryIter.html ```
Configuration menu - View commit details
-
Copy full SHA for e1276a3 - Browse repository at this point
Copy the full SHA e1276a3View commit details -
Rollup merge of rust-lang#76010 - Aaron1011:fix/cfg-generic-param, r=…
…petrochenkov Run cfg-stripping on generic parameters before invoking derive macros Fixes rust-lang#75930 This changes the tokens seen by a proc-macro. However, ising a `#[cfg]` attribute on a generic paramter is unusual, and combining it with a proc-macro derive is probably even more unusual. I don't expect this to cause any breakage.
Configuration menu - View commit details
-
Copy full SHA for de5646d - Browse repository at this point
Copy the full SHA de5646dView commit details -
Rollup merge of rust-lang#76023 - pickfire:patch-4, r=jyn514
Liballoc extend use intra doc link Superseeds https://github.com/rust-lang/rust/pull/75729/commits r? @jyn514
Configuration menu - View commit details
-
Copy full SHA for 54fd272 - Browse repository at this point
Copy the full SHA 54fd272View commit details -
Rollup merge of rust-lang#76027 - davidtwco:issue-61139-remove-obsole…
…te-pretty-printer, r=eddyb ty: remove obsolete pretty printer Fixes rust-lang#61139. This PR removes the obsolete printer and replaces all uses of it with `FmtPrinter`. Of the replaced uses, all but one use was in `debug!` logging, two cases were notable: - `MonoItem::to_string` is used in `-Z print-mono-items` and therefore affects the output of all codegen-units tests (which have been updated). - `DefPathBasedNames` was used in `librustc_codegen_llvm/type_of.rs` with `LLVMStructCreateNamed` and that'll now get different values, but nothing will break as a result of this. cc @eddyb (whom I've discussed this with)
Configuration menu - View commit details
-
Copy full SHA for 10fb8d4 - Browse repository at this point
Copy the full SHA 10fb8d4View commit details -
Rollup merge of rust-lang#76033 - camelid:patch-7, r=Dylan-DPC
Add missing hyphen reference counted pointer -> reference-counted pointer @rustbot modify labels: T-doc
Configuration menu - View commit details
-
Copy full SHA for 264356f - Browse repository at this point
Copy the full SHA 264356fView commit details -
Rollup merge of rust-lang#76050 - matklad:pos, r=petrochenkov
Remove unused function
Configuration menu - View commit details
-
Copy full SHA for 46d66d9 - Browse repository at this point
Copy the full SHA 46d66d9View commit details