about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-07-17rustc_typeck: extract common placeholder type diagnostic codeDenys Otrishko-12/+12
2019-07-17Auto merge of #62596 - cuviper:expect_none, r=rkruppebors-6/+99
Add Option::expect_none(msg) and unwrap_none() These are `Option` analogues to `Result::expect_err` and `unwrap_err`.
2019-07-17Auto merge of #62714 - matthiaskrgr:submodule_upd, r=oli-obkbors-9/+9
submodules: update clippy from b0290424 to 164310dd Changes: ```` Lint Fix float_cmp false positive when comparing signum grep only lines, that start with 'changelog: ' Get PR number from bors commit message Authenticate with github_api_token Check PRs for changelog entry in the body Deny warnings in CI Disable dogfood on windows for faster build time on travis Revert "Remove `CARGO_INCREMENTAL=0` from windows build" Remove `CARGO_INCREMENTAL=0` from windows build Test with different sysroots dependent on the OS Build sys_root in driver with PathBuf instead of String Don't re-set the LD_LIBRARY_PATH in base_tests.sh Add master toolchain binaries to the PATH Change conditional Stop allowing failures in Travis windows build Fix bug in `implicit_hasher` causing crashes Avoid rustfmt bug on Windows Add rustfmt nightly to appveyor install Work around rustup fallback error on Windows Update documentation to the dev fmt command Remove format checks from CI scripts again. Remove format checks from CI script Improve fmt test failure message Fix crash on `dev --limit-stderr-length` Add dev fmt subcommand don't strip blank lines in lint documentation ````
2019-07-16Auto merge of #62592 - nikic:actually-update-llvm, r=alexcrichtonbors-56/+88
Update to LLVM 9 trunk Following the preparatory changes in #62474, this updates the LLVM submodule to https://github.com/rust-lang/llvm-project/tree/rustc/9.0-2019-07-12 and: * Changes the LLVM Rust bindings to account for the new SubtargetSubTypeKV. * Adjusts a codegen test for the new form of the byval attribute that takes a type. * Makes a PGO codegen test more liberal with regard to order and linkage. * Builds InstrProfilingPlatformWindows.c as part of libprofiler_builtins. * Moves registration of additional passes (in particular sanitizers) to the end of the module pass manager. * Disables LLDB on builders. r? @alexcrichton
2019-07-16Auto merge of #61946 - BaoshanPang:vxworks, r=alexcrichtonbors-3/+8791
port rust for vxWorks The supporting for vxWorks has been enabled in this branch. Although there are still a lots of work to do, I would like to upstream the code and fix the problems later. Please let me know if there is anything I have to do before upstream the code. r? @alexcrichton Thanks, Baoshan
2019-07-16Auto merge of #62723 - Mark-Simulacrum:rollup-vjdzlam, r=Mark-Simulacrumbors-238/+62
Rollup of 6 pull requests Successful merges: - #62666 (Cancel unemitted diagnostics during error recovery) - #62683 (Chapter for `param_attrs`) - #62693 (ci: Remove Travis/AppVeyor configuration) - #62702 (normalize use of backticks in compiler messages for libsyntax_ext) - #62703 (normalize use of backticks in compiler messages for libsyntax/parse) - #62722 (ci: Bump time limit of tools builder on PRs) Failed merges: r? @ghost
2019-07-16Rollup merge of #62703 - ↵Mark Rousskov-8/+8
fakenine:normalize_use_of_backticks_compiler_messages_p6, r=eddyb normalize use of backticks in compiler messages for libsyntax/parse https://github.com/rust-lang/rust/issues/60532
2019-07-16Rollup merge of #62702 - ↵Mark Rousskov-7/+7
fakenine:normalize_use_of_backticks_compiler_messages_p5, r=Centril normalize use of backticks in compiler messages for libsyntax_ext https://github.com/rust-lang/rust/issues/60532
2019-07-16Rollup merge of #62693 - alexcrichton:rm-travis-appveyor, r=Mark-SimulacrumMark Rousskov-215/+11
ci: Remove Travis/AppVeyor configuration Now that we've fully moved to Azure Pipelines and bors has been updated to only gate on Azure this commit removes the remaining Travis/AppVeyor support contained in this repository. Most of the deletions here are related to producing better output on Travis by folding certain sections. This isn't supported by Azure so there's no need to keep it around, and if Azure ever adds support we can always add it back!
2019-07-16Rollup merge of #62683 - c410-f3r:fn-attrs-doc, r=CentrilMark Rousskov-0/+27
Chapter for `param_attrs` Most the information was taken from the RFC. cc #60406
2019-07-16Rollup merge of #62666 - estebank:preempt-ice, r=eddybMark Rousskov-8/+9
Cancel unemitted diagnostics during error recovery Follow up to https://github.com/rust-lang/rust/pull/62604. Use @eddyb's preferred style and catch other case of the same problem. r? @eddyb
2019-07-16Auto merge of #62322 - wesleywiser:promoted_query, r=oli-obkbors-2/+11
Add a query to get the `promoted`s for a `mir::Body` This is a builidng block toward removing a lot of duplicated code between miri and the cosnt-propagator pass. See this thread for more info: https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/Using.20.60InterpCx.60.20more/near/169030661 r? @spastorino but feel free to hand it off to somebody else
2019-07-16submodules: update clippy from b0290424 to 164310ddMatthias Krüger-9/+9
Changes: ```` Lint Fix float_cmp false positive when comparing signum grep only lines, that start with 'changelog: ' Get PR number from bors commit message Authenticate with github_api_token Check PRs for changelog entry in the body Deny warnings in CI Disable dogfood on windows for faster build time on travis Revert "Remove `CARGO_INCREMENTAL=0` from windows build" Remove `CARGO_INCREMENTAL=0` from windows build Test with different sysroots dependent on the OS Build sys_root in driver with PathBuf instead of String Don't re-set the LD_LIBRARY_PATH in base_tests.sh Add master toolchain binaries to the PATH Change conditional Stop allowing failures in Travis windows build Fix bug in `implicit_hasher` causing crashes Avoid rustfmt bug on Windows Add rustfmt nightly to appveyor install Work around rustup fallback error on Windows Update documentation to the dev fmt command Remove format checks from CI scripts again. Remove format checks from CI script Improve fmt test failure message Fix crash on `dev --limit-stderr-length` Add dev fmt subcommand don't strip blank lines in lint documentation ````
2019-07-16Add supporting for vxWorksBaoshan Pang-3/+8791
r? @alexcrichton
2019-07-15Rollup merge of #62698 - jethrogb:jb/sgx-llvm-target, r=alexcrichtonMark Rousskov-1/+1
SGX target: don't pretend to be GNU/Linux to LLVM See https://github.com/rust-lang/rust/pull/62592 & https://github.com/rust-lang-nursery/compiler-builtins/issues/303 r? @alexcrichton
2019-07-15Rollup merge of #62689 - 0e4ef622:patch-1, r=XanewokMark Rousskov-1/+1
Fix typo in RawWaker::new documentation poiner -> pointer
2019-07-15Rollup merge of #62685 - nathanwhit:as_ref_suggest_fix, r=estebankMark Rousskov-0/+4
Add info about undefined behavior to as_ref suggestions Fixes #61786. A very small fix, but suggestions on wording/content are welcomed.
2019-07-15Rollup merge of #62680 - ecstatic-morse:fix-dataflow-results-consumer, ↵Mark Rousskov-0/+2
r=matthewjasper Actually call `visit_block_entry` in `DataflowResultsConsumer` This fixes a trivial bug in `DataflowResultsConsumer`: `visit_block_entry` is never called when visiting dataflow results. A previous version of #62547 used this API and included this fix, but it has since switched to `DataflowResultsCursor` making this commit irrelevant.
2019-07-15Rollup merge of #62673 - RalfJung:validity-msg, r=oli-obkMark Rousskov-5/+5
miri validation: better error messages for dangling references Cc @oli-obk
2019-07-15Rollup merge of #62668 - goodmanjonathan:fix-62660, r=estebankMark Rousskov-1/+20
Fix #62660 If the explicitly given type of a `self` parameter fails to parse correctly, we need to propagate the error rather than dropping it and causing an ICE. Fixes #62660.
2019-07-15Rollup merge of #62662 - DutchGhost:fix_space, r=sfacklerMark Rousskov-6/+6
add spaces in front of trait requirements in libcore/cell.rs Adds spaces before trait requirements in `libcore/cell.rs`.
2019-07-15Rollup merge of #62646 - estebank:wording, r=petrochenkovMark Rousskov-62/+62
Tweak wording in feature gate errors
2019-07-15Rollup merge of #62639 - immunant:invariant_valistimpl, r=eddybMark Rousskov-49/+124
Make VaListImpl<'f> invariant over the 'f lifetime After doing some research on variance and going back to look at `VaList` and `VaListImpl`, I realized that `VaList<'a, 'f>` is invariant over the `'f` lifetime (and covariant over `'a`), but `VaListImpl<'f>` isn't invariant but probably should be. This patch makes `VaListImpl<'f>` invariant over `'f`. r? @eddyb cc @dlrobertson
2019-07-15Rollup merge of #62634 - llogiq:uninit-array-docs, r=RalfJungMark Rousskov-5/+7
Less unsafe in the array example of MaybeUninit docs I believe this is an acceptable way to initialize elements of `[MaybeUninit<T>; _]` arrays. Miri agrees. Conceptually, we are working at the array level, above the `MaybeUninit`, and as we are replacing it wholesale, this should pose no problem to soundness. And the code is easier to read. r? @RalfJung
2019-07-15Rollup merge of #62533 - GuillaumeGomez:missing-urls-CannotReallocInPlace, ↵Mark Rousskov-2/+5
r=QuietMisdreavus Add missing links for CannotReallocInPlace type r? @QuietMisdreavus
2019-07-15Rollup merge of #62491 - GuillaumeGomez:fix-pin-urls-for-option, ↵Mark Rousskov-0/+4
r=QuietMisdreavus Fix Pin urls in Option documentation Fixes the following situation: ![Screenshot from 2019-07-08 13-24-59](https://user-images.githubusercontent.com/3050060/60806822-55dfdc00-a184-11e9-9ee3-279e82fc92bd.png) r? @QuietMisdreavus
2019-07-15Rollup merge of #62405 - hellow554:patch-1, r=varkorMark Rousskov-1/+9
Remove never_type feature requirement for exhaustive patterns I **think** this resolves #51221 At least for me, it doesn't ICE anymore and all tests are still passing, so LGTM
2019-07-15Rollup merge of #62103 - RalfJung:debug-assert, r=alexcrichtonMark Rousskov-4/+38
Add debug assertions to write_bytes and copy* Looks like @nitnelave went MIA in https://github.com/rust-lang/rust/pull/58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship. Cc https://github.com/rust-lang/rust/issues/53871
2019-07-16normalize use of backticks in compiler messages for libsyntax/parseSamy Kacimi-8/+8
https://github.com/rust-lang/rust/issues/60532
2019-07-15normalize use of backticks in compiler messages for libsyntax_extSamy Kacimi-7/+7
https://github.com/rust-lang/rust/issues/60532
2019-07-15SGX target: don't pretend to be GNU/Linux to LLVMJethro Beekman-1/+1
2019-07-15Compile new InstrProfilingPlatformWindows.c fileNikita Popov-0/+1
2019-07-15ci: Remove Travis/AppVeyor configurationAlex Crichton-215/+11
Now that we've fully moved to Azure Pipelines and bors has been updated to only gate on Azure this commit removes the remaining Travis/AppVeyor support contained in this repository. Most of the deletions here are related to producing better output on Travis by folding certain sections. This isn't supported by Azure so there's no need to keep it around, and if Azure ever adds support we can always add it back!
2019-07-15Auto merge of #62687 - gnzlbg:stdarch, r=alexcrichtonbors-8/+10
Update stdsimd to stdarch The stdsimd repository no longer lives in `rust-lang-nursery/stdsimd` but now lives in `rust-lang/stdarch` instead. This PR updates the stdsimd submodule to the stdarch master branch.
2019-07-15Fix typo in RawWaker::new documentation0e4ef622-1/+1
poiner -> pointer
2019-07-15ignore some codegen tests in debug modeRalf Jung-0/+3
2019-07-15Add debug assertions to write_bytes and copy*Valentin Tolmer-4/+35
2019-07-15Update stdarchgnzlbg-0/+0
2019-07-15Auto merge of #62667 - petrochenkov:printattr2, r=Mark-Simulacrumbors-254/+350
pprust: Improve pretty-printing of delimited token groups The commit "Do not convert attributes into `MetaItem`s for printing" fixes https://github.com/rust-lang/rust/issues/62628. Other commits fix regressions from abandoning `MetaItem`s, and make formatting for attributes, macro calls, macro definitions and other delimited token groups better and more consistent. r? @Mark-Simulacrum
2019-07-15Add rtm and f16c features to libcoregnzlbg-0/+2
2019-07-15Update the stdarch submodulegnzlbg-8/+8
2019-07-15Relax checks in pgo-instrumentation codegen testNikita Popov-4/+4
Don't require a specific order for the per-function globals, and don't require the locals to have private linkage (apparently internal linkage is also possible).
2019-07-15pprust: Support `macro` macrosVadim Petrochenkov-9/+31
2019-07-15pprust: Fix formatting regressions from the previous commitsVadim Petrochenkov-50/+100
Fix some remaining cases of bad formatting Update some failing tests
2019-07-15pprust: Do not convert attributes into `MetaItem`s for printingVadim Petrochenkov-17/+20
Fixes https://github.com/rust-lang/rust/issues/62628
2019-07-15pprust: Remove the box from `print_tts`Vadim Petrochenkov-2/+4
Wrap the whole attribute into a box instead
2019-07-15pprust: Use `print_mac_common` for delimited token groupsVadim Petrochenkov-78/+94
2019-07-15pprust: Use `print_mac_common` for attributesVadim Petrochenkov-5/+19
2019-07-15pprust: Use `print_mac_common` for `macro_rules` definitionsVadim Petrochenkov-29/+21
2019-07-15pprust: Move some methods to the `PrintState` traitVadim Petrochenkov-147/+144
So that path and macro argument printing code can be shared