about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-04-03Rollup merge of #70691 - TimDiekmann:allocref-docs, r=RalfJungMazdak Farrokhzad-5/+7
Improve docs in `AllocRef` r? @RalfJung
2020-04-03Rollup merge of #70595 - wesleywiser:remove_unused_discriminant_reads, r=oli-obkMazdak Farrokhzad-20/+71
Remove unused discriminant reads from MIR bodies Allow the `SimplifyLocals` pass to remove reads of discriminants if the read is never used. Fixes #70531 r? @oli-obk
2020-04-03Rollup merge of #70487 - Mark-Simulacrum:float-unchecked-casts, r=SimonSapinMazdak Farrokhzad-22/+33
Stabilize float::to_int_unchecked This renames and stabilizes unsafe floating point to integer casts, which are intended to be the substitute for the currently unsound `as` behavior, once that changes to safe-but-slower saturating casts. As such, I believe this also likely unblocks #10184 (our oldest I-unsound issue!), as once this rolls out to stable it would be far easier IMO to change the behavior of `as` to be safe by default. This does not stabilize the trait or the associated method, as they are deemed internal implementation details (and consumers should not, generally, want to expose them, as in practice all callers likely know statically/without generics what the return type is). Closes #67058
2020-04-02switch assignment check back to testing layout equalityRalf Jung-18/+23
2020-04-02remove confusing about lvalues term@ßd€łw@ħ@ß-1/+1
2020-04-02Add hash of source files in debug infoArlo Siemsen-72/+288
* Adds either an MD5 or SHA1 hash to the debug info. * Adds new unstable option `-Z src-hash-algorithm` to control the hashing algorithm.
2020-04-02Place TLS initializers with relocations in .tdataDylan MacKenzie-16/+13
2020-04-02also use mir_assign_valid_types in from_known_layout checkRalf Jung-63/+58
2020-04-02also accept fn-ptr-type-changing assignmentsRalf Jung-2/+7
2020-04-02Miri engine: stronger type-based sanity check for assignmentsRalf Jung-5/+17
2020-04-02unerase regions in `infer_placeholder_type`Matthew Jasper-4/+19
2020-04-02fix type in operands section@ßd€łw@ħ@ß-1/+1
2020-04-02Prefer sysroot from rustc in same directory as rust-gdbJeremy Fitzhardinge-2/+18
If there isn't a rustc in the same directory, then fall back to searching the path.
2020-04-02Remove unused graphviz visualizationDylan MacKenzie-277/+0
This was used by the old framework that was removed in #69644.
2020-04-02Fix typo in u8::to_ascii_uppercase and u8::to_ascii_lowercasePocakking-2/+2
fith => fifth
2020-04-02Expand and remove try_something macro.Alex Aktsipetrov-13/+7
Since https://github.com/rust-lang/rust/commit/2f6226518bd5085896a0f27cfd3ea396367ecd50 there has been only one invocation.
2020-04-02bootstrap: add `--json-output` for rust-analyzerNiko Matsakis-1/+10
2020-04-02Expand on platform details of `include_xxx` macrosRoberto Vidal-5/+11
2020-04-02Remove unnecessary intermediate pointer cast in Thread::new.Vytautas Astrauskas-1/+1
2020-04-02Remove stack overflow handler stub for wasm.Vytautas Astrauskas-8/+0
2020-04-02Move #69020 test to ui/associated-const + rebless.jumbatm-90/+162
2020-04-02Extend #69020 test to include reversed order.jumbatm-0/+18
Make sure we check the case where the generic operand comes first, in case any future changes make this ordering matter.
2020-04-02Rollup merge of #70681 - rcoh:russell/70677-raw-str-panic, r=petrochenkovMazdak Farrokhzad-1/+49
Handle unterminated raw strings with no #s properly The modified code to handle parsing raw strings didn't properly account for the case where there was no "#" on either end and erroneously reported this strings as complete. This lead to a panic trying to read off the end of the file. Fixes #70677 r? @petrochenkov cc @Centril
2020-04-02Rollup merge of #70678 - lzutao:patch-1, r=Dylan-DPCMazdak Farrokhzad-2/+2
Add missing markdown rust annotation
2020-04-02Rollup merge of #70658 - davidtwco:issue-70285-still-further-specializable, ↵Mazdak Farrokhzad-57/+86
r=eddyb add `STILL_FURTHER_SPECIALIZABLE` flag Contributes to #70285. This PR adds a `STILL_FURTHER_SPECIALIZABLE` flag to `TypeFlags` which replaces `needs_infer` and `needs_subst` in `Instance::resolve` and `assemble_candidates_from_impls`. r? @eddyb
2020-04-02Rollup merge of #70634 - Centril:import-directly, r=Mark-SimulacrumMazdak Farrokhzad-468/+414
Remove some reexports in `rustc_middle` This will help get these imports out of the way of detecting the true dependencies in and out to `rustc_middle`, thereby helping future work towards https://github.com/rust-lang/rust/issues/65031.
2020-04-02Rollup merge of #70631 - ehuss:update-cargo, r=ehussMazdak Farrokhzad-0/+0
Update cargo 8 commits in 8a0d4d9c9abc74fd670353094387d62028b40ae9..6e07d2dfb7fc87b1c9489de41da4dafa239daf03 2020-03-24 17:57:04 +0000 to 2020-03-31 03:22:39 +0000 - Fix man page typo for "Owner Options". (rust-lang/cargo#8057) - enable progress bar on all UNIX platforms (rust-lang/cargo#8054) - Squelch some rustdoc warnings. (rust-lang/cargo#8052) - Remove clippy tests. (rust-lang/cargo#8053) - Fix -Zfeatures=itarget with certain host dependencies (rust-lang/cargo#8048) - Checking for binary that is built as an implicit dependency of an integration test. (rust-lang/cargo#8020) - Use stabilized version of rustdoc's --crate-version (rust-lang/cargo#8039) - Remove the `git-checkout` subcommand. (rust-lang/cargo#8040)
2020-04-02Rollup merge of #70615 - Lezzz:rename-tables, r=oli-obkMazdak Farrokhzad-117/+117
Renamed `PerDefTables` to `Tables` Originally suggested by @eddyb
2020-04-02Rollup merge of #70421 - Centril:recover-const-async-fn-ptr, r=estebankMazdak Farrokhzad-23/+215
parse: recover on `const fn()` / `async fn()` Recover on `const fn()` and `async fn()` function pointers, suggesting to remove the qualifier. For example: ``` error: an `fn` pointer type cannot be `async` --> $DIR/recover-const-async-fn-ptr.rs:6:11 | LL | type T3 = async fn(); | -----^^^^^ | | | `async` because of this | help: remove the `async` qualifier ``` r? @estebank
2020-04-02Rollup merge of #70281 - xfix:infallible-hash, r=dtolnayMazdak Farrokhzad-0/+8
Implement Hash for Infallible https://www.reddit.com/r/rust/comments/fmllgx/never_crate_stable_alternative_to/ lists not implementing `Hash` as a reason for the `never` crate. I see no reason not to implement `Hash` for `Infallible`, so might as well do it. No changes necessary for `!`, because `!` already implements `Hash` (see https://github.com/rust-lang/rust/pull/51404).
2020-04-02Improve docs in `AllocRef`Tim Diekmann-5/+7
2020-04-02Remove unused discriminant reads from MIR bodiesWesley Wiser-20/+71
Allow the `SimplifyLocals` pass to remove reads of discriminants if the read is never used.
2020-04-02fix fulldeps test falloutMazdak Farrokhzad-2/+4
2020-04-02nix CachingSourceMapView reexportMazdak Farrokhzad-1/+0
2020-04-02direct imports for langitem stuffMazdak Farrokhzad-52/+48
2020-04-02use direct import for ErrorReportedMazdak Farrokhzad-44/+29
2020-04-02nix rustc_target::abi::* reexport in ty::layoutMazdak Farrokhzad-369/+333
2020-04-02add `STILL_FURTHER_SPECIALIZABLE` flagDavid Wood-57/+86
This commit adds a STILL_FURTHER_SPECIALIZABLE flag to `TypeFlags` which replaces `needs_infer` and `needs_subst` in `Instance::resolve` and `assemble_candidates_from_impls.` Signed-off-by: David Wood <david@davidtw.co>
2020-04-02Auto merge of #70628 - pietroalbini:gha-multiple-tries, r=Mark-Simulacrumbors-0/+1
GHA: enable running multiple try builds at the same time While for auto, try and PR builds we only want the latest commit to be tested, that's not true for try builds: each commit pushed to the branch is a different PR being tested, and we want multiple PRs to be tested in parallel if there is enough demand. Fixes #70569
2020-04-02tests: remove ignore directives from tests that mention core/alloc/std spans.Eduard-Mihai Burtescu-585/+229
2020-04-02Translate the virtual `/rustc/$hash` prefix back to a real directory.Eduard-Mihai Burtescu-18/+121
2020-04-02Auto merge of #70362 - TimDiekmann:alloc-overhaul, r=Amanieubors-1619/+1445
Overhaul of the `AllocRef` trait to match allocator-wg's latest consens; Take 2 GitHub won't let me reopen #69889 so I make a new PR. In addition to #69889 this fixes the unsoundness of `RawVec::into_box` when using allocators supporting overallocating. Also it uses `MemoryBlock` in `AllocRef` to unify `_in_place` methods by passing `&mut MemoryBlock`. Additionally, `RawVec` now checks for `size_of::<T>()` again and ignore every ZST. The internal capacity of `RawVec` isn't used by ZSTs anymore, as `into_box` now requires a length to be specified. r? @Amanieu fixes rust-lang/wg-allocators#38 fixes rust-lang/wg-allocators#41 fixes rust-lang/wg-allocators#44 fixes rust-lang/wg-allocators#51
2020-04-02Handle unterminated raw strings with no #s properlyRussell Cohen-1/+49
The modified code to handle parsing raw strings didn't properly account for the case where there was no "#" on either end and erroneously reported this strings as complete. This lead to a panic trying to read off the end of the file.
2020-04-02Use Self over specific type in return positionLzu Tao-7/+7
2020-04-02Auto merge of #70667 - flip1995:clippyup, r=Manishearthbors-7/+9
Update Clippy r? @Manishearth Closes #70663
2020-04-02Add missing markdown rust annotationlzutao-2/+2
2020-04-01Remove duplicated code in trait selectionEsteban Küber-298/+81
2020-04-01Rollup merge of #70662 - eddyb:compiletest-stdout-fix, r=Mark-SimulacrumDylan DPC-8/+4
compiletest: don't use `std::io::stdout()`, as it bypasses `set_print`. This PR undoes a change made during #69916, which became unnecessary during review but was left in by accident, and which isn't correct due to `libtest` using `std::io::set_print`, which overwrites the `println!` behavior but *not* `writeln!(std::io::stdout(), ...)`. The effect of using `writeln!(std::io::stdout(), ...)` was that the diff output would show *while* running the tests, instead of at the end, when failing tests are listed. r? @Mark-Simulacrum cc @oli-obk
2020-04-01Rollup merge of #70649 - GuillaumeGomez:cleanup-e0468, r=Dylan-DPCDylan DPC-2/+2
clean up E0468 explanation r? @Dylan-DPC
2020-04-01Rollup merge of #70626 - pietroalbini:remove-webrender-cargotest, ↵Dylan DPC-7/+0
r=Mark-Simulacrum cargotest: remove webrender The current webrender commit occasionally fails without a reason, and the latest webrender commit is missing a dependency on our Windows builders. It's not worth installing an extra dependency for cargotest, and the spurious failure makes keeping this test not worth it. r? @Mark-Simulacrum