about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-06-09Update E0423 descriptionEsteban Küber-4/+30
E0423 doesn't apply only to structs, update the error index description to make this clear.
2018-06-04Auto merge of #51340 - Amanieu:hashmap_layout2, r=SimonSapinbors-3/+16
Optimize layout calculations in HashMap This now produces the same assembly code as the previous implementation. cc #51163 @nnethercote @gnzlbg @andjo403
2018-06-04Optimize layout calculations in HashMapAmanieu d'Antras-3/+16
This now produces the same assembly code as the previous implementation.
2018-06-04Auto merge of #51328 - oli-obk:no_union_promotion, r=eddybbors-51/+65
Do not promote union field accesses r? @eddyb technically a breaking change, but the code errored on the previous stable and produces UB + a warning on the current stable. I don't think we need a crater run in that case.
2018-06-04Move slice::exact_chunks directly above exact_chunks_mut for more consistent ↵Sebastian Dröge-35/+35
docs order See https://github.com/rust-lang/rust/issues/47115#issuecomment-392532855
2018-06-04Auto merge of #51334 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-51/+360
Rollup of 6 pull requests Successful merges: - #51288 (Remove rustdoc-specific is_import field from HIR) - #51299 (const fn integer operations) - #51317 (Allow enabling incremental via config.toml) - #51323 (Generate br for all two target SwitchInts) - #51326 (Various minor slice iterator cleanups) - #51329 (Remove the unused `-Z trans-time-graph` flag.) Failed merges:
2018-06-03Rollup merge of #51329 - kennytm:trans-left-over, r=oli-obkMark Simulacrum-2/+0
Remove the unused `-Z trans-time-graph` flag. Rebase of #50783 has accidentally revived the flag (which should be renamed to `-Z codegen-time-graph` by #50615).
2018-06-03Rollup merge of #51326 - sdroege:slice-iter-cleanup, r=dtolnayMark Simulacrum-16/+22
Various minor slice iterator cleanups See individual commits
2018-06-03Rollup merge of #51323 - nikic:switch-int-lowering, r=nagisaMark Simulacrum-5/+14
Generate br for all two target SwitchInts Instead of only for booleans. This means that `if let` also becomes a br. Apart from making the IR slightly simpler, this is supported by FastISel (#4353).
2018-06-03Rollup merge of #51317 - oli-obk:incremental_all_the_way, r=Mark-SimulacrumMark Simulacrum-0/+5
Allow enabling incremental via config.toml r? @QuietMisdreavus
2018-06-03Rollup merge of #51299 - faern:const-int-ops, r=oli-obkMark Simulacrum-14/+313
const fn integer operations A follow up to #51171 Fixes #51267 Makes a lot of the integer methods (`swap_bytes`, `count_ones` etc) `const fn`s. See #51267 for a discussion about why this is wanted and the solution used.
2018-06-03Rollup merge of #51288 - Mark-Simulacrum:delete-is-import, r=eddybMark Simulacrum-14/+6
Remove rustdoc-specific is_import field from HIR Fixes #47100. I believe that there is no need to check for the name being the same, as this part of rustdoc seems to be strictly interested in exploring "public modules." Re-exports from the same module cannot visit another module; and, re-exports cannot export items with a greater visibility than that item declares. Therefore, I think this code is either sufficient, or in fact does more than is necessary, depending on whether rustdoc cares about the re-export itself. r? @eddyb
2018-06-03Auto merge of #51111 - kennytm:intralink-resolution-failure-line-numbers, ↵bors-13/+108
r=GuillaumeGomez Point to the rustdoc attribute where intralink resolution failed.
2018-06-03Auto merge of #50338 - japaric:panic-impl, r=alexcrichtonbors-64/+492
implement #[panic_implementation] This implements the `#[panic_implementation]` attribute as instructed in https://github.com/rust-lang/rust/issues/44489#issuecomment-381324623 I haven't run the full test suite yet but at least all the compile-fail tests pass. r? @nagisa
2018-06-03turn run-make test into a run-make-fulldeps testJorge Aparicio-0/+0
2018-06-03Deduplicate and fix a testOliver Schneider-48/+11
2018-06-03Remove is_import fieldMark Simulacrum-14/+6
2018-06-03Auto merge of #50904 - collin5:b50509, r=Mark-Simulacrumbors-111/+148
Clean up dependency tracking in Rustbuild [1/2] Initial refactor of the `Mode` enum. Still a WIP Ref #50509 r? @Mark-Simulacrum
2018-06-04Remove the unused `-Z trans-time-graph` flag.kennytm-2/+0
Rebase of #50783 has accidentally revived the flag (which should be renamed to `-Z codegen-time-graph` by #50615).
2018-06-03Do not promote union field accessesOliver Schneider-3/+54
2018-06-03impl is_tool on Mode enumCollins Abitekaniza-7/+18
make is_tool inherent prop of mode fix errors from rebase resolve issues from review
2018-06-03Implement TrustedLen for Windows and the 4 Chunks iteratorsSebastian Dröge-0/+15
2018-06-03Remove mention of Slice/SliceMut traits from IterMut documentationSebastian Dröge-3/+1
These don't exist anymore.
2018-06-03Move TrustedLen and FusedIterator impl of Iter/IterMut into macroSebastian Dröge-13/+6
2018-06-03update the miri submodule to masterJorge Aparicio-4/+4
2018-06-03update the miri submoduleJorge Aparicio-2/+2
2018-06-03fix tidy errorJorge Aparicio-1/+2
2018-06-03add more testsJorge Aparicio-0/+115
2018-06-03reject `fn panic_impl<T>(_: &PanicInfo) -> !`Jorge Aparicio-2/+36
2018-06-03remove #[unwind(allowed)]Jorge Aparicio-1/+0
not required because this is a Rust function
2018-06-03fix after rebaseJorge Aparicio-1/+1
2018-06-03undo payload in core::panic! changesJorge Aparicio-126/+37
2018-06-03document that `panic_impl` never passes the FFI boundaryJorge Aparicio-1/+2
2018-06-03remove unused `struct NoPayload`Jorge Aparicio-2/+0
2018-06-03format payload if possible instead of returning "Box<Any>"Jorge Aparicio-4/+11
2018-06-03s/panic_fmt/panic_impl/g in docsJorge Aparicio-21/+22
2018-06-03implement #[panic_implementation]Jorge Aparicio-18/+379
2018-06-03Show which line the link is coming from.kennytm-10/+76
2018-06-03Ignore i128 test on asmjsLinus Färnstrand-4/+9
2018-06-03Point to the rustdoc attribute where intralink resolution failed.kennytm-9/+38
2018-06-03command line args trump config.toml settingsOliver Schneider-1/+4
2018-06-03Auto merge of #51319 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-57/+99
Rollup of 6 pull requests Successful merges: - #51143 (Specify that packed types must derive, not implement, Copy) - #51226 (Make Layout's align a NonZeroUsize) - #51297 (Fix run button style) - #51306 (impl Default for &mut str) - #51312 (Clarify the difference between get_mut and into_mut for OccupiedEntry) - #51313 (use type name in E0599 enum variant suggestion) Failed merges:
2018-06-03refactor mode to ToolRustc for Rls & RustfmtCollins Abitekaniza-2/+2
2018-06-03thread tool modes throughCollins Abitekaniza-16/+36
2018-06-03refactor, make requested changesCollins Abitekaniza-16/+15
2018-06-03refactor Mode enumCollins Abitekaniza-92/+99
2018-06-02Rollup merge of #51313 - euclio:variant-name-suggestion-fix, r=oli-obkMark Simulacrum-8/+8
use type name in E0599 enum variant suggestion Also, rename the variable from "type_str" to "item_kind" to avoid the ambiguity that caused this bug.
2018-06-02Rollup merge of #51312 - frewsxcv:clarify-hash-map-entry-get-mut, r=dtolnayMark Simulacrum-4/+30
Clarify the difference between get_mut and into_mut for OccupiedEntry The examples for both hash_map::OccupiedEntry::get_mut and hash_map::OccupiedEntry::into_mut were almost identical. This led to some confusion over the difference, namely why you would ever use get_mut when into_mut gives alonger lifetime. Reddit thread: https://www.reddit.com/r/rust/comments/8a5swr/why_does_hashmaps This commit adds two lines and a comment to the example, to show that the entry object can be re-used after calling get_mut. Closes https://github.com/rust-lang/rust/issues/49745
2018-06-02Rollup merge of #51306 - kennytm:impl-default-for-mut-str, r=SimonSapinMark Simulacrum-0/+7
impl Default for &mut str Rationale: There is already `impl Default for &mut [T]`. Note: This impl is insta-stable.
2018-06-02Rollup merge of #51297 - GuillaumeGomez:fix-run-but-style, r=QuietMisdreavusMark Simulacrum-3/+6
Fix run button style r? @QuietMisdreavus