-
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 #64687
Rollup of 9 pull requests #64687
Commits on Sep 8, 2019
-
Fix
Stdio::piped
example code and lintSummary: Invoking `rev` does not add a trailing newline when none is present in the input (at least on my Debian). Nearby examples use `echo` rather than `rev`, which probably explains the source of the discrepancy. Also, a `mut` qualifier is unused. Test Plan: Copy the code block into <https://play.rust-lang.org> with a `fn main` wrapper, and run it. Note that it compiles and runs cleanly; prior to this commit, it would emit an `unused_mut` warning and then panic. wchargin-branch: stdio-piped-docs
Configuration menu - View commit details
-
Copy full SHA for 9bf5773 - Browse repository at this point
Copy the full SHA 9bf5773View commit details
Commits on Sep 13, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 612ef5f - Browse repository at this point
Copy the full SHA 612ef5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e69d1b6 - Browse repository at this point
Copy the full SHA e69d1b6View commit details
Commits on Sep 15, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 146cb8e - Browse repository at this point
Copy the full SHA 146cb8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2f903c - Browse repository at this point
Copy the full SHA b2f903cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6579d13 - Browse repository at this point
Copy the full SHA 6579d13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75fb42a - Browse repository at this point
Copy the full SHA 75fb42aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89bbef3 - Browse repository at this point
Copy the full SHA 89bbef3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c34693 - Browse repository at this point
Copy the full SHA 4c34693View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d1c3c9 - Browse repository at this point
Copy the full SHA 9d1c3c9View commit details
Commits on Sep 16, 2019
-
Configuration menu - View commit details
-
Copy full SHA for cc5fe6d - Browse repository at this point
Copy the full SHA cc5fe6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ca42a5 - Browse repository at this point
Copy the full SHA 9ca42a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57eeb61 - Browse repository at this point
Copy the full SHA 57eeb61View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb2cfec - Browse repository at this point
Copy the full SHA fb2cfecView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7139f3 - Browse repository at this point
Copy the full SHA d7139f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07deb93 - Browse repository at this point
Copy the full SHA 07deb93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dfd706 - Browse repository at this point
Copy the full SHA 0dfd706View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38a5ae9 - Browse repository at this point
Copy the full SHA 38a5ae9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b406f1 - Browse repository at this point
Copy the full SHA 9b406f1View commit details -
or-patterns: check_match: remove
top_pats_hack
for `check_for_bindi……ngs_named_same_as_variants`.
Configuration menu - View commit details
-
Copy full SHA for 6bd8c6d - Browse repository at this point
Copy the full SHA 6bd8c6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 549756b - Browse repository at this point
Copy the full SHA 549756bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56b055a - Browse repository at this point
Copy the full SHA 56b055aView commit details -
or-patterns: liveness:
is_argument
->is_param
.Pacify `tidy`. It's also more correct in this context.
Configuration menu - View commit details
-
Copy full SHA for 05cc3c0 - Browse repository at this point
Copy the full SHA 05cc3c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 370fbcc - Browse repository at this point
Copy the full SHA 370fbccView commit details
Commits on Sep 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 3f004a1 - Browse repository at this point
Copy the full SHA 3f004a1View commit details
Commits on Sep 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for a9c38d9 - Browse repository at this point
Copy the full SHA a9c38d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31b3012 - Browse repository at this point
Copy the full SHA 31b3012View commit details
Commits on Sep 20, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e625f62 - Browse repository at this point
Copy the full SHA e625f62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78ff110 - Browse repository at this point
Copy the full SHA 78ff110View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52e4919 - Browse repository at this point
Copy the full SHA 52e4919View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6b4fb7 - Browse repository at this point
Copy the full SHA c6b4fb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for df24055 - Browse repository at this point
Copy the full SHA df24055View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6015e4 - Browse repository at this point
Copy the full SHA e6015e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c792c25 - Browse repository at this point
Copy the full SHA c792c25View commit details -
Configuration menu - View commit details
-
Copy full SHA for c396c12 - Browse repository at this point
Copy the full SHA c396c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f36f87 - Browse repository at this point
Copy the full SHA 6f36f87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c2d227 - Browse repository at this point
Copy the full SHA 9c2d227View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8233b28 - Browse repository at this point
Copy the full SHA 8233b28View commit details
Commits on Sep 21, 2019
-
or-patterns: middle/dead: remove
top_pats_hack
.Also tweak walkers on `Pat`.
Configuration menu - View commit details
-
Copy full SHA for 0918dc4 - Browse repository at this point
Copy the full SHA 0918dc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67d88f6 - Browse repository at this point
Copy the full SHA 67d88f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aa9d29 - Browse repository at this point
Copy the full SHA 2aa9d29View commit details -
Configuration menu - View commit details
-
Copy full SHA for e41aa8c - Browse repository at this point
Copy the full SHA e41aa8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8417ac6 - Browse repository at this point
Copy the full SHA 8417ac6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e6b844 - Browse repository at this point
Copy the full SHA 3e6b844View commit details
Commits on Sep 22, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 60560bc - Browse repository at this point
Copy the full SHA 60560bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3d7917 - Browse repository at this point
Copy the full SHA c3d7917View commit details -
Configuration menu - View commit details
-
Copy full SHA for daed674 - Browse repository at this point
Copy the full SHA daed674View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f2f16d - Browse repository at this point
Copy the full SHA 0f2f16dView commit details -
Infer consts consistently. Moved some logic into super_combined_consts,
also removed some duplicated logic from TypeRelation methods.
Configuration menu - View commit details
-
Copy full SHA for 3f2855e - Browse repository at this point
Copy the full SHA 3f2855eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ee2920 - Browse repository at this point
Copy the full SHA 3ee2920View commit details -
Rollup merge of rust-lang#64158 - tmandry:libtest-panic-abort, r=alex…
…crichton panic=abort support in libtest Add experimental support for tests compiled with panic=abort. Enabled with `-Z panic_abort_tests`. r? @alexcrichton cc @cramertj
Configuration menu - View commit details
-
Copy full SHA for 43f291c - Browse repository at this point
Copy the full SHA 43f291cView commit details -
Rollup merge of rust-lang#64294 - wchargin:wchargin-stdio-piped-docs,…
… r=Dylan-DPC Fix `Stdio::piped` example code and lint Summary: Invoking `rev` does not add a trailing newline when none is present in the input (at least on my Debian). Nearby examples use `echo` rather than `rev`, which probably explains the source of the discrepancy. Also, a `mut` qualifier is unused. Test Plan: Copy the code block into <https://play.rust-lang.org> with a `fn main` wrapper, and run it. Note that it compiles and runs cleanly; prior to this commit, it would emit an `unused_mut` warning and then panic. wchargin-branch: stdio-piped-docs
Configuration menu - View commit details
-
Copy full SHA for f8d12dc - Browse repository at this point
Copy the full SHA f8d12dcView commit details -
Rollup merge of rust-lang#64508 - Centril:or-pat-hir, r=matthewjasper
or-patterns: Push `PatKind/PatternKind::Or` at top level to HIR & HAIR Following up on work in rust-lang#64111, rust-lang#63693, and rust-lang#61708, in this PR: - We change `hair::Arm.patterns: Vec<Pattern<'_>>` into `hir::Arm.pattern: Pattern<'_>`. - `fn hair::Arm::top_pats_hack` is introduced as a temporary crutch in MIR building to avoid more changes. - We change `hir::Arm.pats: HirVec<P<Pat>>` into `hir::Arm.pat: P<Pat>`. - The hacks in `rustc::hir::lowering` are removed since the representation hack is no longer necessary. - In some places, `fn hir::Arm::top_pats_hack` is introduced to leave some things as future work. - Misc changes: HIR pretty printing is adjusted to behave uniformly wrt. top/inner levels, rvalue promotion is adjusted, regionck, and dead_code is also. - Type checking is adjusted to uniformly handle or-patterns at top/inner levels. To make things compile, `p_0 | ... | p_n` is redefined as a "reference pattern" in [`fn is_non_ref_pat`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_typeck/check/struct.FnCtxt.html#method.is_non_ref_pat) for now. This is done so that reference types are not eagerly stripped from the `expected: Ty<'tcx>`. - Liveness is adjusted wrt. the `unused_variables` and `unused_assignments` lints to handle top/inner levels uniformly and the handling of `fn` parameters, `let` locals, and `match` arms are unified in this respect. This is not tested for now as exhaustiveness checks are reachable and will ICE. - In `check_match`, checking `@` and by-move bindings is adjusted. However, exhaustiveness checking is not adjusted the moment and is handled by @dlrobertson in rust-lang#63688. - AST borrowck (`construct.rs`) is not adjusted as AST borrowck will be removed soon. r? @matthewjasper cc @dlrobertson @varkor @oli-obk
Configuration menu - View commit details
-
Copy full SHA for c743912 - Browse repository at this point
Copy the full SHA c743912View commit details -
Rollup merge of rust-lang#64546 - weiznich:bugfix/rfc-2451-rerebalanc…
…e-tests, r=nikomatsakis Bugfix/rfc 2451 rerebalance tests r? @nikomatsakis Fixes rust-lang#64412 Depends/Contains on rust-lang#64414 cc rust-lang#55437 and rust-lang#63599
Configuration menu - View commit details
-
Copy full SHA for 2455f42 - Browse repository at this point
Copy the full SHA 2455f42View commit details -
Rollup merge of rust-lang#64670 - Mark-Simulacrum:ext-build-simplify,…
… r=petrochenkov Cleanup syntax::ext::build I suspect most of this code could be inlined but I only removed the bits where the inlining didn't really hurt readability (i.e., method call -> function call) or the completely unused code.
Configuration menu - View commit details
-
Copy full SHA for 18d1912 - Browse repository at this point
Copy the full SHA 18d1912View commit details -
Rollup merge of rust-lang#64674 - estebank:knock-down-the-wall, r=Cen…
…tril Propagate `types.err` in locals further to avoid spurious knock-down errors Fix rust-lang#33575, fix rust-lang#44504.
Configuration menu - View commit details
-
Copy full SHA for f21b8ae - Browse repository at this point
Copy the full SHA f21b8aeView commit details -
Rollup merge of rust-lang#64676 - estebank:assoc-type-bound-in-generi…
…c, r=petrochenkov Parse assoc type bounds in generic params and provide custom diagnostic Fix rust-lang#26271.
Configuration menu - View commit details
-
Copy full SHA for 7c830ec - Browse repository at this point
Copy the full SHA 7c830ecView commit details -
Rollup merge of rust-lang#64677 - tshepang:outdated, r=Mark-Simulacrum
remove outdated comment
Configuration menu - View commit details
-
Copy full SHA for ee2012c - Browse repository at this point
Copy the full SHA ee2012cView commit details -
Rollup merge of rust-lang#64679 - skinny121:const-infer, r=varkor
Infer consts more consistently Moved some duplicated logic in `TypeRelation` methods into `super_combined_consts`. Before some `TypeRelation`s like `Lub` wasn't using `replace_if_possible`, meaning some inference types were staying around longer than they should be. Fixes rust-lang#64519 r? @varkor
Configuration menu - View commit details
-
Copy full SHA for afd1c60 - Browse repository at this point
Copy the full SHA afd1c60View commit details