about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-04-14Rollup merge of #59900 - czipperz:remove-bracket-mut-syntax-in-pin-docs, ↵Mazdak Farrokhzad-12/+16
r=RalfJung Remove [mut] syntax in pin docs Resolves #59832
2019-04-14Rollup merge of #59896 - estebank:dedup-spans, r=davidtwcoMazdak Farrokhzad-4/+31
Remove duplicated redundant spans Fix #59895.
2019-04-14Rollup merge of #59877 - Zoxc:hiridify_def_id, r=eddybMazdak Farrokhzad-121/+303
HirIdify hir::Def cc @ljedrz r? @oli-obk
2019-04-14Rollup merge of #59856 - albins:update-polonius, r=nikomatsakisMazdak Farrokhzad-3/+3
update polonius-engine This updates polonius-engine to [version 0.7.0](https://github.com/rust-lang/polonius/blob/master/RELEASES.md#v070), which adds a hybrid algorithm that starts off with performing a cheaper, location-insensitive analysis before proceeding with the full analysis. r? @nikomatsakis
2019-04-14Auto merge of #59929 - RalfJung:miri, r=oli-obkbors-14/+14
update miri Fixes https://github.com/rust-lang/rust/issues/59901
2019-04-14Add missing backtick to Symbol documentation.krk-1/+1
2019-04-14Address review commentsVadim Petrochenkov-8/+13
2019-04-14Fix cross-crate visibility of fictive variant constructorsVadim Petrochenkov-1/+19
2019-04-14update miriRalf Jung-14/+14
2019-04-14Auto merge of #59693 - nnethercote:64-bit-Spans, r=petrochenkovbors-103/+90
Increase `Span` from 4 bytes to 8 bytes. This increases the size of some important types, such as `ast::Expr` and `mir::Statement`. However, it drastically reduces how much the interner is used, and the fields are more natural sizes that don't require bit operations to extract. As a result, instruction counts drop across a range of workloads, by as much as 10% for `script-servo` incremental builds. Peak memory usage goes up a little for some cases, but down by more for some other cases -- as much as 18% for non-incremental builds of `packed-simd`. The commit also: - removes the `repr(packed)`, because it has negligible effect, but can cause undefined behaviour; - replaces explicit impls of common traits (`Copy`, `PartialEq`, etc.) with derived ones. r? @petrochenkov
2019-04-14huge-enum also exhibits this errorRalf Jung-0/+4
2019-04-14make lint levels more consistentRalf Jung-6/+7
2019-04-14some more tests need normalizationRalf Jung-0/+12
2019-04-14normalize away spurious errorRalf Jung-3/+27
2019-04-14normalize flags and rustc version in ICE reproRalf Jung-2/+4
2019-04-14fix output test for backtrace-debuginfo.rsRalf Jung-2/+4
2019-04-14fix testsRalf Jung-1/+26
2019-04-14compiletest normalization: preserve non-JSON lines such as ICEsRalf Jung-1/+2
2019-04-14bump stdsimd; make intra_doc_link_resolution_failure an error againRalf Jung-2/+2
2019-04-14Update testsJohn Kåre Alsaker-3/+3
2019-04-14HirIdify hir::Defljedrz-118/+300
2019-04-14Auto merge of #59798 - rchaser53:issue-59488, r=estebankbors-3/+188
Improvement for comparision against fn I try to add error message. related: https://github.com/rust-lang/rust/issues/59488
2019-04-14Fix tidyAaron Hill-3/+3
2019-04-14Combine 'Extern' and 'ExternPrivate'Aaron Hill-36/+61
2019-04-14Properly parse '--extern-private' with name and pathAaron Hill-22/+113
2019-04-14Auto merge of #59950 - Centril:rollup-hpmr62i, r=Centrilbors-198/+880
Rollup of 6 pull requests Successful merges: - #59776 (Apply resource-suffix to search-index and source-files scripts as well) - #59784 (Suggest importing macros from the crate root) - #59812 (Exclude profiler-generated symbols from MSVC __imp_-symbol workaround.) - #59874 (Clean up handling of `-Z pgo-gen` commandline option.) - #59890 (Don't generate empty json variables) - #59911 (Revert "compile crates under test w/ -Zemit-stack-sizes") Failed merges: r? @ghost
2019-04-14Rollup merge of #59911 - ↵Mazdak Farrokhzad-31/+0
pnkfelix:revert-pr-59401-to-fix-emit-stack-sizes-gc-sections-ld-gold-bug, r=alexcrichton Revert "compile crates under test w/ -Zemit-stack-sizes" Revert PR #59401 to fix issue #59652 (a stable-to-beta regression). This is result of squashing two revert commits: Revert "compile all crates under test w/ -Zemit-stack-sizes" This reverts commit 7d365cf27f4249fc9b61ba8abfc813abe43f1cb7. Revert "bootstrap: build compiler-builtins with -Z emit-stack-sizes" This reverts commit 8b8488ce8fc047282e7159343f30609417f9fa39. ---- (My intention is that someone can re-add this code again later, either after the `ld.gold` issue itself is fixed, or with safe-guards to check whether `ld.gold` is in use and then issuing warnings about the problems here when they arise.)
2019-04-14Rollup merge of #59890 - GuillaumeGomez:empty-json-variables, r=QuietMisdreavusMazdak Farrokhzad-19/+34
Don't generate empty json variables r? @rust-lang/rustdoc
2019-04-14Rollup merge of #59874 - michaelwoerister:pgo-updates-1, r=cramertjMazdak Farrokhzad-27/+60
Clean up handling of `-Z pgo-gen` commandline option. This PR adapts the `-Z pgo-gen` flag to how Clang and GCC handle the corresponding `-fprofile-generate` flag. In particular, the flag now optionally takes a directory to place the profiling data in and allows to omit the argument (instead of having to pass an empty string).
2019-04-14Rollup merge of #59812 - michaelwoerister:profile-gen-msvc-imp, r=alexcrichtonMazdak Farrokhzad-1/+29
Exclude profiler-generated symbols from MSVC __imp_-symbol workaround. LLVM's profiling instrumentation adds a few symbols that are used by the profiler runtime. Since these show up as globals in the LLVM IR, the compiler generates `dllimport`-related `__imp_` stubs for them. This can lead to linker errors because the instrumentation symbols have weak linkage or are in a comdat section, but the `__imp_` stubs aren't. Instead of trying to replicate the linkage/comdat setup for the stubs, this PR just excludes the profiler-related symbols from stub-generation since they aren't supposed to be referenced via `__declspec(dllimport)` anywhere anyway. r? @alexcrichton EDIT: I considered making this more general, i.e. inferring from the symbol name if it is a Rust symbol or not. But then I figured out that that would yield false negatives for `#[no_mangle]` et al, so I went with a blacklist approach.
2019-04-14Rollup merge of #59784 - davidtwco:issue-59764, r=estebankMazdak Farrokhzad-114/+751
Suggest importing macros from the crate root Fixes #59764. r? @estebank cc @varkor
2019-04-14Rollup merge of #59776 - GuillaumeGomez:apply-resource-suffix, r=QuietMisdreavusMazdak Farrokhzad-6/+6
Apply resource-suffix to search-index and source-files scripts as well Fixes #59771. r? @QuietMisdreavus
2019-04-14Rollup merge of #59930 - kornelski:first-robots, r=GuillaumeGomezMazdak Farrokhzad-0/+8
Exclude some copies of old book editions from search engines These are only stubs that confuse search engine users. There's no useful content in these locations.
2019-04-14Rollup merge of #59925 - solson:split_ascii_whitespace-docfix, r=CentrilMazdak Farrokhzad-1/+1
Fix paste error in split_ascii_whitespace docs. It was accidentally still testing the unicode version, `split_whitespace`.
2019-04-14Rollup merge of #59912 - RalfJung:maybe-uninit, r=CentrilMazdak Farrokhzad-34/+0
MaybeUninit: remove deprecated functions
2019-04-14Rollup merge of #59899 - nnethercote:sort-enum-variants-by-size, r=pnkfelixMazdak Farrokhzad-26/+32
In `-Zprint-type-size` output, sort enum variants by size. It's useful to see the biggest variants first. r? @pnkfelix
2019-04-14Rollup merge of #59858 - mark-i-m:dup-matcher-bindings-3, r=CentrilMazdak Farrokhzad-61/+44
Make duplicate matcher bindings a hard error r? @Centril Closes #57742
2019-04-14Rollup merge of #59855 - GuillaumeGomez:fix-attr-position-in-type-decl, ↵Mazdak Farrokhzad-6/+17
r=QuietMisdreavus Fix attributes position in type declaration Fixes #59797. r? @rust-lang/rustdoc
2019-04-14Rollup merge of #59852 - alexcrichton:more-vectored, r=sfacklerMazdak Farrokhzad-37/+247
std: Add `{read,write}_vectored` for more types This commit implements the `{read,write}_vectored` methods on more types in the standard library, namely: * `std::fs::File` * `std::process::ChildStd{in,out,err}` * `std::io::Std{in,out,err}` * `std::io::Std{in,out,err}Lock` * `std::io::Std{in,out,err}Raw` Where supported the OS implementations hook up to native support, otherwise it falls back to the already-defaulted implementation.
2019-04-14Rollup merge of #59835 - lzutao:nonzero-signed, r=Mark-SimulacrumMazdak Farrokhzad-1/+3
Re-export NonZero signed variant in std Closes #59834 .
2019-04-14Rollup merge of #59830 - ehuss:keyword-links, r=Mark-SimulacrumMazdak Farrokhzad-30/+25
Fix links on keyword docs. - Make links relative. - Adjust links from old 2018-edition book. - Fix broken link in `let` docs.
2019-04-14Rollup merge of #59818 - crlf0710:eliminate_libstd_fnbox, r=cramertjMazdak Farrokhzad-24/+15
Eliminate `FnBox` usages from libstd.
2019-04-14Rollup merge of #59804 - Zoxc:cleaner-jobserver, r=alexcrichtonMazdak Farrokhzad-122/+8
Clean up jobserver integration cc @alexcrichton
2019-04-14Rollup merge of #59796 - oli-obk:const_arg_ice, r=eddybMazdak Farrokhzad-45/+51
Retire `IsNotConst` naming This naming scheme caused a lot of confusion lately (including ICEs) due to misrefactored code. Also clean up the initialization code for said flag. r? @eddyb previous discussions: https://github.com/rust-lang/rust/pull/58784#issuecomment-468717439 https://github.com/rust-lang/rust/pull/58403#discussion_r265936336
2019-04-14Rollup merge of #59747 - gruberb:copy-book-toml-unstable-book, r=ehussMazdak Farrokhzad-11/+12
Copy book.toml unstable book generator Solves https://github.com/rust-lang/rust/issues/59554 and adds a book title to the unstable book. I assume that [copy_recursive](https://github.com/rust-lang/rust/blob/acd8dd6a50d505057a7d7ad8d0d7a4c2bd274200/src/tools/unstable-book-gen/src/main.rs#L105) will take files regardless of their type (`.md` or `.toml`). Although I had a hard time time testing it. A second pair of eyes is definitely needed.
2019-04-14Rollup merge of #59735 - matklad:deadcode, r=sanxiynMazdak Farrokhzad-30/+9
remove lookup_char_pos_adj It is now exactly equivalent to lookup_char_pos.
2019-04-14Rollup merge of #59708 - matthewjasper:double-closure-unused-mut, r=pnkfelixMazdak Farrokhzad-28/+87
Mark variables captured by reference as mutable correctly Closes #59620 r? @pnkfelix
2019-04-14Rollup merge of #59675 - SimonSapin:stable-alloc, r=alexcrichtonMazdak Farrokhzad-43/+25
Stabilize the `alloc` crate. This implements RFC 2480: * https://github.com/rust-lang/rfcs/pull/2480 * https://github.com/rust-lang/rfcs/blob/master/text/2480-liballoc.md Closes https://github.com/rust-lang/rust/issues/27783
2019-04-13Expand note on mutable referencesChris Gregory-1/+4
2019-04-13Auto merge of #59612 - matthewjasper:dataflow-usual-newtype-index, r=estebankbors-76/+30
Use normal newtype_index macro for MIR dataflows * Makes the definition of these structs contain `struct IndexName` * Avoids having an offset by removing high values, rather than 0 * Implements some traits for us.