about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-03-05Move stray generator test into the `generator` dirJonas Schievink-0/+0
2020-03-04Move formatting to different functionJonas Schievink-1/+5
This slims down the generator MIR considerably, which makes debugging easier
2020-03-04Auto merge of #69636 - RalfJung:miri, r=nikomatsakisbors-8/+11
update miri Let's make that toolstate green again. :D This bumps serde in the lockfile, so r? @oli-obk Fixes https://github.com/rust-lang/rust/issues/69462
2020-03-04update miriRalf Jung-7/+10
2020-03-04point cargo-miri to the right xargo binaryRalf Jung-1/+1
2020-03-04Auto merge of #68952 - faern:stabilize-assoc-int-consts, r=dtolnaybors-242/+263
Stabilize assoc_int_consts associated int/float constants The next step in RFC https://github.com/rust-lang/rfcs/pull/2700 (tracking issue #68490). Stabilizing the associated constants that were added in #68325. * Stabilize all constants under the `assoc_int_consts` feature flag. * Update documentation on old constants to say they are soft-deprecated and the new ones should be preferred. * Update documentation examples to use new constants. * Remove `uint_macro` and use `int_macro` for all integer types since the macros were identical anyway. r? @LukasKalbertodt
2020-03-04Auto merge of #69550 - RalfJung:scalar, r=oli-obkbors-87/+69
interpret engine: Scalar cleanup * Remove `to_ptr` * Make `to_bits` private r? @oli-obk
2020-03-03Auto merge of #69678 - Dylan-DPC:rollup-yoaueud, r=Dylan-DPCbors-56/+100
Rollup of 6 pull requests Successful merges: - #69565 (miri engine: turn some debug_assert into assert) - #69621 (use question mark operator in a few places.) - #69650 (cleanup more iterator usages (and other things)) - #69653 (use conditions directly) - #69665 (Invoke OptimizerLastEPCallbacks in PreLinkThinLTO) - #69670 (Add explanation for E0379) Failed merges: r? @ghost
2020-03-03Rollup merge of #69670 - GuillaumeGomez:explain-e0379, r=Dylan-DPCDylan DPC-0/+12
Add explanation for E0379 r? @Dylan-DPC
2020-03-03Rollup merge of #69665 - tmiasko:new-pass-manager-thin-lto-opt, r=nikicDylan DPC-4/+57
Invoke OptimizerLastEPCallbacks in PreLinkThinLTO The default ThinLTO pre-link pipeline does not include optimizer last extension points. Thus, when using the new LLVM pass manager & ThinLTO & sanitizers on any opt-level different from zero, the sanitizer function passes would be omitted from the pipeline. Add optimizer last extensions points manually to the pipeline, but guard registration with stage check in the case this behaviour changes in the future.
2020-03-03Rollup merge of #69653 - matthiaskrgr:needless_bool, r=Dylan-DPCDylan DPC-3/+2
use conditions directly
2020-03-03Rollup merge of #69650 - matthiaskrgr:clnp, r=varkorDylan DPC-27/+16
cleanup more iterator usages (and other things) * Improve weird formatting by moving comment inside else-code block. * Use .any(x) instead of .find(x).is_some() on iterators. * Use .nth(x) instead of .skip(x).next() on iterators. * Simplify conditions like x + 1 <= y to x < y * Use let instead of match to get value of enum with single variant.
2020-03-03Rollup merge of #69621 - matthiaskrgr:q, r=petrochenkovDylan DPC-15/+6
use question mark operator in a few places.
2020-03-03Rollup merge of #69565 - RalfJung:assert, r=eddybDylan DPC-7/+7
miri engine: turn some debug_assert into assert @eddyb said to avoid debug assertions in rustc. These checks here look like they are probably not too expensive. Cc @oli-obk
2020-03-03Auto merge of #69506 - Centril:stmt-semi-none, r=petrochenkovbors-102/+73
encode `;` stmt without expr as `StmtKind::Empty` Instead of encoding `;` statements without a an expression as a tuple in AST, encode it as `ast::StmtKind::Empty`. r? @petrochenkov
2020-03-03Auto merge of #69371 - tmiasko:weak-lang-cycle, r=alexcrichtonbors-7/+91
Improve linking of crates with circular dependencies Previously, the code responsible for handling the cycles between crates introduces through weak lang items, would keep a set of missing language items: * extending it with items missing from the current crate, * removing items provided by the current crate, * grouping the crates when the set changed from non-empty back to empty. This could produce incorrect results, if a lang item was missing from a crate that comes after the crate that provides it (in the loop iteration order). In that case the grouping would not take place. The changes here address this specific failure scenario by keeping track of two separate sets of crates. Those that are required to link successfully, and those that are available for linking. Verified using test case from #69368.
2020-03-03Auto merge of #69482 - lqd:poloniusup, r=nikomatsakisbors-45/+60
Polonius: update `polonius-engine` to 0.12.0 Since @albins won't have the time to finish up #68993 for a while, I'll take care of the trivial remaining tasks (rebasing, taking care of tidy/rustfmt). I'll r? @nikomatsakis since they're assigned to #68993, but have actually [already reviewed it pre-rebase](https://github.com/rust-lang/rust/pull/68993#issuecomment-586413089). When CI passes: I'll notify bors and close #68993, since this PR supersedes it.
2020-03-03Add explanation for E0379Guillaume Gomez-0/+12
2020-03-03Add regression test for linking issue with start-group / end-groupTomasz Miąsko-0/+76
2020-03-03Improve linking of crates with circular dependenciesTomasz Miąsko-7/+15
Previously, the code responsible for handling the cycles between crates introduces through weak lang items, would keep a set of missing language items: * extending it with items missing from the current crate, * removing items provided by the current crate, * grouping the crates when the set changed from non-empty back to empty. This could produce incorrect results, if a lang item was missing from a crate that comes after the crate that provides it (in the loop iteration order). In that case the grouping would not take place. The changes here address this specific failure scenario by keeping track of two separate sets of crates. Those that are required to link successfully, and those that are available for linking. Verified using test case from 69368.
2020-03-03use question mark operator in a few places.Matthias Krüger-15/+6
2020-03-03Auto merge of #69666 - JohnTitor:rollup-6nt3op0, r=JohnTitorbors-321/+225
Rollup of 9 pull requests Successful merges: - #69213 (Improve documentation on iterators length) - #69609 (Remove `usable_size` APIs) - #69619 (more cleanups) - #69620 (doc(librustc_error_codes): add long error explanation for E0719) - #69626 (Toolstate: don't duplicate nightly tool list.) - #69628 (Fix a leak in `DiagnosticBuilder::into_diagnostic`.) - #69633 (Update my mailmap entry) - #69634 (clean up E0378 explanation) - #69637 (Don't convert Results to Options just for matching.) Failed merges: r? @ghost
2020-03-03Rollup merge of #69637 - matthiaskrgr:if_let_some_result, r=ecstatic-morseYuki Okushi-3/+3
Don't convert Results to Options just for matching.
2020-03-03Rollup merge of #69634 - GuillaumeGomez:clean-up-e0378, r=Dylan-DPCYuki Okushi-20/+22
clean up E0378 explanation r? @Dylan-DPC
2020-03-03Rollup merge of #69633 - XAMPPRocky:master, r=Dylan-DPCYuki Okushi-1/+2
Update my mailmap entry superceding #68891
2020-03-03Rollup merge of #69628 - ↵Yuki Okushi-6/+5
nnethercote:fix-DiagnosticBuilder-into_diagnostic-leak, r=Centril Fix a leak in `DiagnosticBuilder::into_diagnostic`. Fixes #69600. r? @Centril
2020-03-03Rollup merge of #69626 - ehuss:toolstate-nightly-cleanup, r=Mark-SimulacrumYuki Okushi-1/+1
Toolstate: don't duplicate nightly tool list. Just some cleanup, seems good to avoid duplicating this list.
2020-03-03Rollup merge of #69620 - thekuom:doc/61137-add-long-error-code-e0719, ↵Yuki Okushi-1/+38
r=davidtwco doc(librustc_error_codes): add long error explanation for E0719 Reference issue #61137 - Updated error_codes.rs - Added E0719.md in error_codes - Updated necessary test .stderr files
2020-03-03Rollup merge of #69619 - matthiaskrgr:misc, r=eddybYuki Okushi-18/+15
more cleanups * use starts_with() instead of chars().next() == Some(x) * use subsec_micros() instead of subsec_nanos() / 1000 * use for (idx, item) in iter.enumerate() instead of manually counting loop iterations with variables * use values() or keys() respectively when iterating only over keys or values of maps.
2020-03-03Rollup merge of #69609 - TimDiekmann:excess, r=AmanieuYuki Okushi-269/+134
Remove `usable_size` APIs This removes the usable size APIs: - remove `usable_size` (obv) - change return type of allocating methods to include the allocated size - remove `_excess` API r? @Amanieu closes rust-lang/wg-allocators#17
2020-03-03Rollup merge of #69213 - LeSeulArtichaut:improve-doc-iter, r=steveklabnikYuki Okushi-2/+5
Improve documentation on iterators length Attempts to resolve #66491. @the8472 does this help? r? @steveklabnik
2020-03-03Fix check for __msan_keep_going in sanitizer-recover testTomasz Miąsko-2/+2
Match `@__msan_keep_going = weak_odr constant i32 1`.
2020-03-03Add test for -Znew-llvm-pass-manager -Clto=thin -Zsanitizer=...Tomasz Miąsko-0/+45
Additionally verify that the current implementation of LLVM version check (which uses lexicographic ordering) is good enough to exclude versions before LLVM 9, where the new LLVM pass manager is unsupported.
2020-03-03Invoke OptimizerLastEPCallbacks in PreLinkThinLTOTomasz Miąsko-2/+10
The default ThinLTO pre-link pipeline does not include optimizer last extension points. Thus, when using the new LLVM pass manager & ThinLTO & sanitizers on any opt-level different from zero, the sanitizer function passes would be omitted from the pipeline. Add optimizer last extensions points manually to the pipeline, but guard registration with stage check in the case this behaviour changes in the future.
2020-03-03Auto merge of #69247 - CAD97:remove-chalk, r=nikomatsakisbors-2860/+20
Remove experimental chalk option As suggested by @nikomatsakis [here](https://github.com/rust-lang/rust/pull/68807#issuecomment-583339932). The current version of chalk used by the experimental `-Zchalk` flag is [v0.9.0, which is over a year old](https://crates.io/crates/chalk-engine). Since v0.9.0, chalk has seen [a lot of further development](https://github.com/rust-lang/chalk/compare/41dfe13...master), and the intent is to eventually upgrade rustc to use a more recent chalk. However, it will take a decent chunk of effort to upgrade the current experimental chalk support, and it is currently [blocking at least some PRs](https://github.com/rust-lang/rust/pull/68807) due to chalk:0.9.0's use of unstable features. So for the interim until the next chalk release and experimental rustc integration, we remove the chalk-specific code from rustc.
2020-03-03use conditions directlyMatthias Krüger-3/+2
2020-03-03Improve weird formatting by moving comment inside else-code block.Matthias Krüger-3/+3
2020-03-03Use .any(x) instead of .find(x).is_some() on iterators.Matthias Krüger-10/+6
2020-03-03Use .nth(x) instead of .skip(x).next() on iterators.Matthias Krüger-7/+3
2020-03-03Simplify conditions like x + 1 <= y to x < yMatthias Krüger-2/+2
2020-03-03Use let instead of match to get value of enum with single variant.Matthias Krüger-5/+2
2020-03-02Remove chalk integrationCAD97-2860/+20
2020-03-03Remove `usable_size` APIsTim Diekmann-269/+134
2020-03-02Auto merge of #69627 - ehuss:update-cargo-clippy, r=Dylan-DPCbors-13/+13
Update cargo, clippy Closes #69601 ## cargo 16 commits in e57bd02999c9f40d52116e0beca7d1dccb0643de..bda50510d1daf6e9c53ad6ccf603da6e0fa8103f 2020-02-21 20:20:10 +0000 to 2020-03-02 18:05:34 +0000 - Fix rare failure in collision_export test. (rust-lang/cargo#7956) - Ignore broken Cargo.toml in git sources (rust-lang/cargo#7947) - Add more fingerprint mtime debug logging. (rust-lang/cargo#7952) - Fix plugin tests for latest nightly. (rust-lang/cargo#7955) - Simplified usage code of SipHasher (rust-lang/cargo#7945) - Add a special case for git config discovery inside tests (rust-lang/cargo#7944) - Fixes issue rust-lang/cargo#7543 (rust-lang/cargo#7946) - Filter out cfgs which should not be used during build (rust-lang/cargo#7943) - Provide extra context on a query failure. (rust-lang/cargo#7934) - Try to clarify `cargo metadata`'s relationship with the workspace. (rust-lang/cargo#7927) - Update libgit2 dependency (rust-lang/cargo#7939) - Fix link in comment (rust-lang/cargo#7936) - Enable `cargo doc --open` tests on macos. (rust-lang/cargo#7932) - build-std: remove sysroot probe (rust-lang/cargo#7931) - Try to clarify how feature flags work on the "current" package. (rust-lang/cargo#7928) - Add extra details in the new feature resolver doc comment. (rust-lang/cargo#7918) ## clippy 6 commits in fc5d0cc583cb1cd35d58fdb7f3e0cfa12dccd6c0..8b7f7e667268921c278af94ae30a61e87a22b22b 2020-02-24 05:58:17 +0000 to 2020-03-02 20:00:31 +0000 - Rustup to rust-lang/rust#69469 (rust-lang-nursery/rust-clippy#5254) - Some rustups (rust-lang-nursery/rust-clippy#5247) - Update git2 to 0.12 (rust-lang-nursery/rust-clippy#5232) - Rustup to rust-lang/rust#61812 (rust-lang-nursery/rust-clippy#5231) - Add lint to improve floating-point expressions (rust-lang-nursery/rust-clippy#4897) - Do not run deploy action on other repos (rust-lang-nursery/rust-clippy#5222)
2020-03-02Apply suggestions from code reviewLeSeulArtichaut-2/+3
2020-03-02Update cargo, clippyEric Huss-13/+13
2020-03-02Toolstate: don't duplicate nightly tool list.Eric Huss-1/+1
2020-03-02Don't convert Results to Options just for matching.Matthias Krüger-3/+3
2020-03-02Auto merge of #69635 - Dylan-DPC:rollup-2oh8uu5, r=Dylan-DPCbors-95/+688
Rollup of 6 pull requests Successful merges: - #68682 (Add documentation to compiler intrinsics) - #69544 (Unrevert "Remove `checked_add` in `Layout::repeat`") - #69617 (constify mem::forget) - #69622 (Rename `syntax` in librustc_ast/README.md) - #69623 (stash API: remove panic to fix ICE.) - #69624 (Toolstate: Don't block beta week on already broken tools.) Failed merges: - #69626 (Toolstate: don't duplicate nightly tool list.) r? @ghost
2020-03-02Rollup merge of #69624 - ehuss:toolstate-beta-regress, r=Mark-SimulacrumDylan DPC-63/+133
Toolstate: Don't block beta week on already broken tools. This changes it so that tools are allowed to be broken entering the beta week if they are already broken. This restores the original behavior before the changes in #69332. Closes #68458