about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-01-31Rollup merge of #57971 - jethrogb:jb/sgx-panic, r=alexcrichtonMazdak Farrokhzad-22/+32
SGX target: improve panic & exit handling Implement this part of the spec: > The enclave must not rely on userspace to terminate other threads still running. Similarly, the enclave must not trust that it will no longer be entered by userspace, and it must safeguard against that in the entrypoints. Also use `UserRef` to access panic buffer r? @alexcrichton cc @VardhanThigle
2019-01-31Rollup merge of #57934 - dwijnand:from-Arc/Rc-to-NonNull, r=alexcrichtonMazdak Farrokhzad-0/+42
Introduce into_raw_non_null on Rc and Arc None
2019-01-31Rollup merge of #57920 - euclio:source-date-epoch, r=Mark-SimulacrumMazdak Farrokhzad-2/+14
use `SOURCE_DATE_EPOCH` for man page time if set Fixes #57776.
2019-01-31Rollup merge of #57106 - matthiaskrgr:trim_must_use, r=sfacklerMazdak Farrokhzad-0/+12
Mark str::trim.* functions as #[must_use]. The functions return a reference to a new object and do not modify in-place as the following code shows: ```` let s = String::from(" hello "); s.trim(); assert_eq!(s, " hello "); ```` The new reference should be bound to a variable as now indicated by #[must_use].
2019-01-31Rollup merge of #57008 - ↵Mazdak Farrokhzad-7/+60
Knium:misleading-try-adding-parentheses-in-match-with-comma, r=oli-obk suggest `|` when `,` founds in invalid match value Issue #54807 I get stuck on (what | how) I should implement...
2019-01-30Auto merge of #57974 - llogiq:vec-deque-try-fold, r=alexcrichtonbors-1/+47
override `VecDeque`'s `Iter::try_fold` This should improve performance (wherever it is used), but I haven't found the time to benchmark it yet.
2019-01-30Fix #57730John Kåre Alsaker-1/+1
2019-01-30Move privacy checking later in the pipeline and make some passes run in parallelJohn Kåre Alsaker-104/+157
2019-01-30Pass correct arguments to places_conflictMatthew Jasper-1/+37
The borrow place *must* be a place that we track borrows for, otherwise we will likely ICE.
2019-01-30Don't panic when accessing enum variant ctor using `Self` in matchEsteban Küber-1/+26
2019-01-30Failure resistent trait implementingOliver Scherer-1/+2
2019-01-30Improve bug message in check_tyPhilipp Hansch-2/+2
This branch was hit in Clippy and I think it would be nice to show the thing that was unexpected in the bug message. It's also in line with the other `bug!` messages in `check_ty`.
2019-01-30fix #57686: update docs for fix_start/end_matchesRett Berg-8/+8
2019-01-30Swap the names of `LocalValue` and `LocalState`Oliver Scherer-33/+33
2019-01-30Prefer macro over manual implementationOliver Scherer-12/+6
2019-01-30Add suggestions to deprecation lintsOliver Scherer-26/+111
2019-01-30Auto merge of #57495 - jamesmunns:mdbook-compat, r=steveklabnikbors-25/+103
Support multiple versions of MdBook for docs Only the compatibility items from the embedded book PR. PR with embedded book components: https://github.com/rust-lang/rust/pull/56291 CC @steveklabnik, @ehuss, and https://github.com/rust-lang-nursery/edition-guide/pull/134
2019-01-30Add MOVBE featureJethro Beekman-1/+5
2019-01-30CI: Use lld for linking LLVM in the x86_64-gnu-debug image.Michael Woerister-0/+1
2019-01-30bootstrap: Expose LLVM_USE_LINKER cmake option to config.toml.Michael Woerister-0/+7
2019-01-30ci: Use clang as the C++ compiler for x86_64-gnu-debug.Michael Woerister-3/+9
2019-01-30bootstrap: Make LLD available to run-make tests.Michael Woerister-14/+27
2019-01-30Add missing packages.Michael Woerister-0/+5
2019-01-30Eliminate an unwrapOliver Scherer-10/+11
2019-01-30Monomorphize types when not going through `layout_of_local`Oliver Scherer-2/+3
2019-01-30Add exception for new dependency in license checkerJames Munns-0/+1
2019-01-30Update to newer version of mdbook(2)James Munns-1/+1
2019-01-30Indent fixupOliver Scherer-2/+2
2019-01-30Remove stable featureJames Munns-2/+0
2019-01-30No consumers of MdBook2 yetJames Munns-0/+4
2019-01-30Only the compatibility items from the embedded book PRJames Munns-25/+100
PR: https://github.com/rust-lang/rust/pull/56291
2019-01-30proc_macro: make `TokenStream::from_streams` pre-allocate its vector.Felix S. Klock II-1/+7
This requires a pre-pass over the input streams. But that is cheap compared to the quadratic blowup associated with reallocating the accumulating vector on-the-fly.
2019-01-30The return place's layout is only used once per frame, so caching doesn't helpOliver Scherer-1/+1
2019-01-30Can't use `layout_of_local` for the frame currently being createdOliver Scherer-2/+3
2019-01-30Make priroda happy againOliver Scherer-1/+1
2019-01-30Allow `layout_of_local` to also use cached layoutsOliver Scherer-14/+19
2019-01-30Auto merge of #57988 - RalfJung:miri, r=oli-obkbors-14/+14
update miri r? @oli-obk
2019-01-30Merge `locals` and `local_layouts` fieldsOliver Scherer-39/+68
2019-01-30Allow #[repr(align(x))] on enums (#57996)Niklas Fiekas-24/+87
2019-01-30update miriRalf Jung-14/+14
2019-01-30Auto merge of #57932 - matthiaskrgr:clippy_submodule_upd, r=oli-obkbors-8/+10
submodules: update clippy from f1753522 to 6ce78d12 Should fix clippy toolstate Changes: ```` wildcard_match_arm: Update lint count. wildcard_match_arm: add nesting issue to known. wildcard_match_arm: lint only enum matches. wildcard_match_arm: update ui test stderr wildcard_match_arm: format test. wilcard_match_arm: run rustfmt. wildcard_match_arm: add lint properly. wildcard_match_arm: rename function. wildcard_match_arm: add simple ui test. wildcard_match_arm: expand lint scope. Change match_wild lint name to WILDCARD_MATCH_ARM. Add match_wild lint (#3649). fetch_prs_between: add .sh file ending cargo fmt Update various docs Use built-in entry_fn detection over self-built cargo fmt Reorganize conditionals: Run faster checks first Maybe fix ICE? Add initial version of const_fn lint Fix `unit_arg` false positive Rustfmt Check hypothetically failing conversion Remove tests for deprecated items Update more changed iterator paths Atomics constants are now handled by the deprecation lint Update changed iterator paths Update const slice processing update test stderr run cargo fmt rustup https://github.com/rust-lang/rust/pull/57907/ Fix documentation for `slow_vector_initialization` rustup https://github.com/rust-lang/rust/pull/57726 Remove unsafe_vector_initialization from added lints Prevent incorrect cast_lossless suggestion in const_fn Incorporate review suggestions Fix dogfood tests on Appveyor test(versioncheck): Use .no_deps() test(versioncheck): Fix version equality check chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1 dependencies: update itertools from 0.7 to 0.8 Add script to fetch GitHub PRs between two commits gitattributes: Treat .fixed files as rust files Update changelog with all changes since 0.0.212 Fix `expect_fun_call` lint suggestions ```` r? @oli-obk
2019-01-30override `VecDeque`'s `Iter::try_fold`Andre Bogus-1/+47
2019-01-30Suggest to add each of `|` and `()` when unexpected `,` is found in patternKnium_-7/+60
2019-01-30Auto merge of #57975 - alexcrichton:debug-exit-appveyor, r=pietroalbinibors-0/+7
Attempt to debug 259 exit code on AppVeyor Let's try to dig in a bit more and see where this is coming from, it looks like AppVeyor is also unsure where this is coming from!
2019-01-30submodules: update clippy from f1753522 to 6ce78d12Matthias Krüger-8/+10
Changes: ```` wildcard_match_arm: Update lint count. wildcard_match_arm: add nesting issue to known. wildcard_match_arm: lint only enum matches. wildcard_match_arm: update ui test stderr wildcard_match_arm: format test. wilcard_match_arm: run rustfmt. wildcard_match_arm: add lint properly. wildcard_match_arm: rename function. wildcard_match_arm: add simple ui test. wildcard_match_arm: expand lint scope. Change match_wild lint name to WILDCARD_MATCH_ARM. Add match_wild lint (#3649). fetch_prs_between: add .sh file ending cargo fmt Update various docs Use built-in entry_fn detection over self-built cargo fmt Reorganize conditionals: Run faster checks first Maybe fix ICE? Add initial version of const_fn lint Fix `unit_arg` false positive Rustfmt Check hypothetically failing conversion Remove tests for deprecated items Update more changed iterator paths Atomics constants are now handled by the deprecation lint Update changed iterator paths Update const slice processing update test stderr run cargo fmt rustup https://github.com/rust-lang/rust/pull/57907/ Fix documentation for `slow_vector_initialization` rustup https://github.com/rust-lang/rust/pull/57726 Remove unsafe_vector_initialization from added lints Prevent incorrect cast_lossless suggestion in const_fn Incorporate review suggestions Fix dogfood tests on Appveyor test(versioncheck): Use .no_deps() test(versioncheck): Fix version equality check chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1 dependencies: update itertools from 0.7 to 0.8 Add script to fetch GitHub PRs between two commits gitattributes: Treat .fixed files as rust files Update changelog with all changes since 0.0.212 Fix `expect_fun_call` lint suggestions ````
2019-01-29Auto merge of #57953 - mati865:cc-fix, r=alexcrichtonbors-9/+4
Do not set CC, CFLAGS, CXX, CXXFLAGS, AR, RANLIB in bootstrap, it breaks cross compilation Fixes https://github.com/rust-lang/rust/issues/57812 I tested it in AArch64 Ubuntu container with several days old tree to have all the tools buildable. I did **not** test native builds (amd64 -> amd64), leaving it to CI. r? @alexcrichton
2019-01-29Add link to the edition guide.Siddhartha Sahu-0/+4
2019-01-29Add tracking issue to unstable attributeJonas Schievink-4/+4
2019-01-29Use LLVM intrinsics for saturating add/subNikita Popov-3/+101
2019-01-29Make weak_count return an Option<usize>Jonas Schievink-26/+22