-
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 19 pull requests #65570
Rollup of 19 pull requests #65570
Commits on Oct 2, 2019
-
Always inline
mem::{size_of,align_of}
in debug buildsThose two are const fn and do not have any arguments. Inlining helps reducing generated code size in debug builds.
Configuration menu - View commit details
-
Copy full SHA for a87b44d - Browse repository at this point
Copy the full SHA a87b44dView commit details
Commits on Oct 8, 2019
-
Disable Go and OCaml bindings when building LLVM
Instead of instaling OCaml bindings in a location where installation will not fail, don't build them in the first place.
Configuration menu - View commit details
-
Copy full SHA for 3b0fd82 - Browse repository at this point
Copy the full SHA 3b0fd82View commit details
Commits on Oct 13, 2019
-
Collect occurrences of for mismatched braces diagnostic
Change-Id: I20ba0b62308370ee961141fa1aefc4b9c9f0cb3a
Configuration menu - View commit details
-
Copy full SHA for e6ce3ef - Browse repository at this point
Copy the full SHA e6ce3efView commit details -
Collect occurrences of for mismatched braces diagnostic
Change-Id: I20ba0b62308370ee961141fa1aefc4b9c9f0cb3a
Configuration menu - View commit details
-
Copy full SHA for 888d0ba - Browse repository at this point
Copy the full SHA 888d0baView commit details
Commits on Oct 15, 2019
-
Collect occurrences of for mismatched braces diagnostic
Change-Id: I20ba0b62308370ee961141fa1aefc4b9c9f0cb3a
Configuration menu - View commit details
-
Copy full SHA for fe819a0 - Browse repository at this point
Copy the full SHA fe819a0View commit details
Commits on Oct 16, 2019
-
Use a
BitSet
inLexicalResolver::iterate_until_fixed_point()
.This wins 3% on `unicode_normalization`.
Configuration menu - View commit details
-
Copy full SHA for 70b136d - Browse repository at this point
Copy the full SHA 70b136dView commit details -
Inline and remove
iterate_until_fixed_point()
.The commit also removes the debug statement, because they annoyed me. This change wins another 1% on `unicode_normalization`, at least partly because it no longer needs to increment `iteration`.
Configuration menu - View commit details
-
Copy full SHA for d51fee0 - Browse repository at this point
Copy the full SHA d51fee0View commit details
Commits on Oct 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 42c0236 - Browse repository at this point
Copy the full SHA 42c0236View commit details -
show up some extra info when t!() fails
Guanqun Lu committedOct 17, 2019 Configuration menu - View commit details
-
Copy full SHA for c716be6 - Browse repository at this point
Copy the full SHA c716be6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1db077 - Browse repository at this point
Copy the full SHA d1db077View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21d9258 - Browse repository at this point
Copy the full SHA 21d9258View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83e97c6 - Browse repository at this point
Copy the full SHA 83e97c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cd9276 - Browse repository at this point
Copy the full SHA 4cd9276View commit details -
Configuration menu - View commit details
-
Copy full SHA for f647c06 - Browse repository at this point
Copy the full SHA f647c06View commit details -
Plugins deprecation: don’t suggest simply removing the attribute
Building Servo with a recent Nightly produces: ```rust warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See rust-lang#29597 --> components/script/lib.rs:14:1 | 14 | #![plugin(script_plugins)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute | = note: `#[warn(deprecated)]` on by default ``` First, linking to rust-lang#29597 is not ideal since there is pretty much no discussion there of the deprecation and what can be used instead. This PR changes the link to the deprecation PR which does have more discussion. Second, the “remove this attribute” suggestion is rather unhelpful. Just because a feature is deprecated doesn’t mean that simply removing its use without a replacement is acceptable. In the case of custom lint, there is no replacement available. Prefixing a message with “help:” when telling users that they’re screwed honestly feels disrespectful. This PR also changes the message to be more factual.
Configuration menu - View commit details
-
Copy full SHA for 71b0049 - Browse repository at this point
Copy the full SHA 71b0049View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4d9492 - Browse repository at this point
Copy the full SHA a4d9492View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fe88ab - Browse repository at this point
Copy the full SHA 5fe88abView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad6ce46 - Browse repository at this point
Copy the full SHA ad6ce46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e6efe4 - Browse repository at this point
Copy the full SHA 4e6efe4View commit details -
Co-Authored-By: Mark Rousskov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5487994 - Browse repository at this point
Copy the full SHA 5487994View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0b7e76 - Browse repository at this point
Copy the full SHA c0b7e76View commit details -
doc: make BitSet intro more short
Also, add a link to the growable type
Configuration menu - View commit details
-
Copy full SHA for c9b27d1 - Browse repository at this point
Copy the full SHA c9b27d1View commit details
Commits on Oct 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for cd9e444 - Browse repository at this point
Copy the full SHA cd9e444View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5de9cb0 - Browse repository at this point
Copy the full SHA 5de9cb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e069e9c - Browse repository at this point
Copy the full SHA e069e9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 591cc9a - Browse repository at this point
Copy the full SHA 591cc9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb7d6d1 - Browse repository at this point
Copy the full SHA bb7d6d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3e9951 - Browse repository at this point
Copy the full SHA e3e9951View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fc063f - Browse repository at this point
Copy the full SHA 0fc063fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39c9ed3 - Browse repository at this point
Copy the full SHA 39c9ed3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b2e35b - Browse repository at this point
Copy the full SHA 2b2e35bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f2a110 - Browse repository at this point
Copy the full SHA 4f2a110View commit details -
Setup a different visit place set of methods for mutable and immutabl…
…e visitors In particular, use a blank visit_place for mutable visitor to be sure, non modified visitors are not trying to mutating place.
Configuration menu - View commit details
-
Copy full SHA for 7fa3425 - Browse repository at this point
Copy the full SHA 7fa3425View commit details -
Configuration menu - View commit details
-
Copy full SHA for d53fc9c - Browse repository at this point
Copy the full SHA d53fc9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0eaf60 - Browse repository at this point
Copy the full SHA d0eaf60View commit details -
Make
TokenStream::from_iter
less general and more efficient.The current code has this impl: ``` impl<T: Into<TokenStream>> iter::FromIterator<T> for TokenStream ``` If given an `IntoIterator<Item = TokenTree>`, it will convert each individual `TokenTree` to a `TokenStream` (at the cost of two allocations: a `Vec` and an `Lrc`). It will then merge those `TokenStream`s into a single `TokenStream`. This is inefficient. This commit changes the impl to this less general one: ``` impl iter::FromIterator<TokenTree> for TokenStream ``` It collects the `TokenTree`s into a single `Vec` first and then converts that to a `TokenStream` by wrapping it in a single `Lrc`. The previous generality was unnecessary; no other code needs changing. This change speeds up several benchmarks by up to 4%.
Configuration menu - View commit details
-
Copy full SHA for a6eef29 - Browse repository at this point
Copy the full SHA a6eef29View commit details -
Change
Lit::tokens()
toLit::token_tree()
.Because most of the call sites have an easier time working with a `TokenTree` instead of a `TokenStream`.
Configuration menu - View commit details
-
Copy full SHA for 212ae58 - Browse repository at this point
Copy the full SHA 212ae58View commit details -
Change
MetaItem::tokens()
toMetaItem::token_trees_and_joints()
.Likewise for `NestedMetaItem::tokens()`. Also, add `MetaItemKind::token_trees_and_joints()`, which `MetaItemKind::tokens()` now calls. This avoids some unnecessary `TokenTree` to `TokenStream` conversions, and removes the need for the clumsy `TokenStream::append_to_tree_and_joint_vec()`.
Configuration menu - View commit details
-
Copy full SHA for e4ec4a6 - Browse repository at this point
Copy the full SHA e4ec4a6View commit details -
Fix left/right shift typo in wrapping rotate docs
This makes the note similar to the one found on rotate functions for primitive types like i32/u32.
Configuration menu - View commit details
-
Copy full SHA for 769e75b - Browse repository at this point
Copy the full SHA 769e75bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9617014 - Browse repository at this point
Copy the full SHA 9617014View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4834996 - Browse repository at this point
Copy the full SHA 4834996View commit details -
Rollup merge of rust-lang#65016 - lzutao:inline-mem-constfn, r=oli-obk
Always inline `mem::{size_of,align_of}` in debug builds Those two are const fn and do not have any arguments. Inlining helps reducing generated code size in debug builds. See also rust-lang#64996.
Configuration menu - View commit details
-
Copy full SHA for 7167a59 - Browse repository at this point
Copy the full SHA 7167a59View commit details -
Rollup merge of rust-lang#65197 - spastorino:place-mut-visitor-adjust…
…s2, r=oli-obk Prepare `MutVisitor`s to handle interned projections The following are all the files where mir's `MutVisitor` is implemented. The `-` there stands for no changes, `visit_place` wasn't making any change on `Place`s. `x` stands for this file was changed to make `visit_place` do whatever it was doing with the base but avoid modifying the projection, instead just create a new one and assign to it. ``` [-] src/librustc_mir/transform/no_landing_pads.rs [x] src/librustc_mir/transform/promote_consts.rs [x] src/librustc_mir/transform/generator.rs [x] src/librustc_mir/transform/erase_regions.rs [-] src/librustc_mir/transform/instcombine.rs [x] src/librustc_mir/transform/inline.rs [x] src/librustc_mir/transform/simplify.rs [x] src/librustc_mir/util/def_use.rs [-] src/librustc_mir/transform/const_prop.rs [-] src/librustc_mir/transform/cleanup_post_borrowck.rs [x] src/librustc_mir/borrow_check/nll/renumber.rs [-] src/librustc_mir/transform/copy_prop.rs ``` There is some code repetition, just created the PR so we can start discussing it. /cc @oli-obk @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for d2bea3c - Browse repository at this point
Copy the full SHA d2bea3cView commit details -
Rollup merge of rust-lang#65201 - tmiasko:no-bindings, r=rkruppe
Disable Go and OCaml bindings when building LLVM Instead of instaling OCaml bindings in a location where installation will not fail, don't build them in the first place.
Configuration menu - View commit details
-
Copy full SHA for fdef437 - Browse repository at this point
Copy the full SHA fdef437View commit details -
Rollup merge of rust-lang#65334 - GuillaumeGomez:long-err-explanation…
…-E0575, r=kinnison Add long error explanation for E0575 Part of rust-lang#61137.
Configuration menu - View commit details
-
Copy full SHA for bb53fed - Browse repository at this point
Copy the full SHA bb53fedView commit details -
Rollup merge of rust-lang#65364 - XiangQingW:master, r=estebank
Collect occurrences of empty blocks for mismatched braces diagnostic Fix rust-lang#63904
Configuration menu - View commit details
-
Copy full SHA for 8f8a23f - Browse repository at this point
Copy the full SHA 8f8a23fView commit details -
Rollup merge of rust-lang#65455 - nnethercote:avoid-unnecessary-Token…
…Tree-to-TokenStream-conversions, r=petrochenkov Avoid unnecessary `TokenTree` to `TokenStream` conversions A `TokenStream` contains any number of `TokenTrees`. Therefore, a single `TokenTree` can be promoted to a `TokenStream`. But doing so costs two allocations: one for the single-element `Vec`, and one for the `Lrc`. (An `IsJoint` value also must be added; the default is `NonJoint`.) The current code converts `TokenTree`s to `TokenStream`s unnecessarily in a few places. This PR removes some of these unnecessary conversions, both simplifying the code and speeding it up. r? @petrochenkov
Configuration menu - View commit details
-
Copy full SHA for f5f5c9e - Browse repository at this point
Copy the full SHA f5f5c9eView commit details -
Rollup merge of rust-lang#65472 - Zoxc:sharded-dep-graph-2, r=nikomat…
…sakis Use a sharded dep node to dep node index map Split out from rust-lang#61845 and based on rust-lang#63756. r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 05ab63e - Browse repository at this point
Copy the full SHA 05ab63eView commit details -
Rollup merge of rust-lang#65480 - nnethercote:rm-iterate_until_fixed_…
…size, r=nikomatsakis Speed up `LexicalResolve::expansion()` A couple of improvements that speed up `unicode_normalization` by about 4%. The first commit was enabled by the improvements to `BitSet` iteration in rust-lang#65425. r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for c6bb960 - Browse repository at this point
Copy the full SHA c6bb960View commit details -
Rollup merge of rust-lang#65493 - GuillaumeGomez:long-err-explanation…
…-E0584, r=kinnison Add long error explanation for E0584 Part of rust-lang#61137. r? @kinnison
Configuration menu - View commit details
-
Copy full SHA for e27e39b - Browse repository at this point
Copy the full SHA e27e39bView commit details -
Rollup merge of rust-lang#65496 - tspiteri:euc-div-panic, r=KodrAus
properly document panics in div_euclid and rem_euclid For signed numbers, document that `div_euclid` and `rem_euclid` panic not just when `rhs` is 0, but also when the division overflows. For unsigned numbers, document that `div_euclid` and `rem_euclid` panic when `rhs` is 0.
Configuration menu - View commit details
-
Copy full SHA for ea5a184 - Browse repository at this point
Copy the full SHA ea5a184View commit details -
Rollup merge of rust-lang#65498 - SimonSapin:plugin-help, r=Centril
Plugins deprecation: don’t suggest simply removing the attribute Building Servo with a recent Nightly produces: ```rust warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See rust-lang#29597 --> components/script/lib.rs:14:1 | 14 | #![plugin(script_plugins)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute | = note: `#[warn(deprecated)]` on by default ``` First, linking to rust-lang#29597 is not ideal since there is pretty much no discussion there of the deprecation and what can be used instead. This PR changes the link to the deprecation PR which does have more discussion. Second, the “remove this attribute” suggestion is rather unhelpful. Just because a feature is deprecated doesn’t mean that simply removing its use without a replacement is acceptable. In the case of custom lint, there is no replacement available. Prefixing a message with “help:” when telling users that they’re screwed honestly feels disrespectful. This PR also changes the message to be more factual.
Configuration menu - View commit details
-
Copy full SHA for 64bf0ca - Browse repository at this point
Copy the full SHA 64bf0caView commit details -
Rollup merge of rust-lang#65508 - rust-lang:llvm-icebreakers-ping-1, …
…r=simulacrum add option to ping llvm ice-breakers to triagebot
Configuration menu - View commit details
-
Copy full SHA for 9fc8d8e - Browse repository at this point
Copy the full SHA 9fc8d8eView commit details -
Rollup merge of rust-lang#65511 - Xanewok:sa-nest-in-impls, r=pnkfelix
save-analysis: Nest tables when processing impl block definitions Similar to rust-lang#65353 (which this PR should've been a part of), however in this case we didn't previously nest the tables when processing trait paths in impl block declarations. Closes rust-lang#65411
Configuration menu - View commit details
-
Copy full SHA for 156a55e - Browse repository at this point
Copy the full SHA 156a55eView commit details -
Rollup merge of rust-lang#65513 - RalfJung:fmt, r=Mark-Simulacrum
reorder fmt docs for more clarity I adjusted these docs in rust-lang#65332 but wasn't happy with the result when seeing it in rustdoc. So this reorders the subsections in the "Formatting Parameters" section to be more logical (subsections that reference `width` come after the `width` subsection) and they also all have examples now.
Configuration menu - View commit details
-
Copy full SHA for 5948961 - Browse repository at this point
Copy the full SHA 5948961View commit details -
Rollup merge of rust-lang#65532 - tshepang:shorten-intro, r=Dylan-DPC
doc: make BitSet intro more short Also, add a link to the growable type
Configuration menu - View commit details
-
Copy full SHA for 138ff4a - Browse repository at this point
Copy the full SHA 138ff4aView commit details -
Rollup merge of rust-lang#65535 - eddyb:sliced-predicates, r=nikomats…
…akis rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct. While rebasing rust-lang#59789 I noticed we can do this now. However, it doesn't help much without changing `inferred_outlives_of` to the same type, which I might try next.
Configuration menu - View commit details
-
Copy full SHA for bc85061 - Browse repository at this point
Copy the full SHA bc85061View commit details -
Rollup merge of rust-lang#65540 - guanqun:extend-t-macro, r=nikomatsakis
show up some extra info when t!() fails
Configuration menu - View commit details
-
Copy full SHA for 37cbdf3 - Browse repository at this point
Copy the full SHA 37cbdf3View commit details -
Rollup merge of rust-lang#65549 - t-rapp:tr-wrapping-rotate-docs, r=j…
…onas-schievink Fix left/right shift typo in wrapping rotate docs This makes the note similar to the one found on rotate functions for primitive types like i32/u32.
Configuration menu - View commit details
-
Copy full SHA for edc42a9 - Browse repository at this point
Copy the full SHA edc42a9View commit details -
Rollup merge of rust-lang#65552 - JohnTitor:use-bitwise-not, r=Dylan-DPC
Clarify diagnostics when using `~` as a unary op It seems we prefer `bitwise not` to `bitwise negation`. Fixes rust-lang#57239 r? @estebank
Configuration menu - View commit details
-
Copy full SHA for 3850408 - Browse repository at this point
Copy the full SHA 3850408View commit details