about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-03-02Rollup merge of #58782 - tspiteri:str-escape-self, r=kennytmkennytm-3/+3
Replace `s` with `self` in docs for str methods taking self. Cherry picked from PR #58596 which is blocked on some intra-doc link bugs.
2019-03-02Rollup merge of #58780 - RalfJung:manually-drop, r=nagisakennytm-0/+8
ManuallyDrop != MaybeUninit Cc @Centril
2019-03-02Rollup merge of #58730 - timvermeulen:internal_iteration, r=scottmcmkennytm-32/+37
Have all methods of Filter and FilterMap use internal iteration This PR changes `Filter::{next, next_back, count}` and `FilterMap::{next, next_back}` to all use internal iteration. The `next` and `next_back` methods are changed to directly forward to `try_for_each` and `try_rfold` respectively, using `Result` as the `Try` type. I think that's okay? Alternatively, I could change their implementations to use `LoopState` instead if there's any benefit in doing so. r? @scottmcm
2019-03-02Auto merge of #58216 - pitdicker:sqos_flags, r=alexcrichtonbors-8/+25
Set secure flags when opening a named pipe on Windows Fixes https://github.com/rust-lang/rust/issues/42036, see also the previous attempt in https://github.com/rust-lang/rust/pull/44556. Whether this is correct depends on if it is somehow possible to create a symlink to a named pipe, outside the named pipe filesystem (NPFS). But as far as I can tell that should be impossible. Also fixes that `security_qos_flags(SECURITY_ANONYMOUS)` does not set the `SECURITY_SQOS_PRESENT` flag, and the incorrect documentation about the default value of `security_qos_flags`.
2019-03-02Auto merge of #58077 - Nemo157:generator-state-debug-info, r=Zoxcbors-6/+39
Add debug-info to access variables from generator state
2019-03-02driver: fix testljedrz-4/+4
2019-03-02hir: HirIdify Impl&TraitItemIdljedrz-73/+55
2019-03-02hir: remove NodeId from VariantDataljedrz-40/+30
2019-03-02hir: remove NodeId from Pat and FieldPatljedrz-102/+87
2019-03-02hir: remove NodeId from Itemljedrz-212/+208
2019-03-02hir: remove NodeId from ForeignItemljedrz-22/+24
2019-03-02hir: remove NodeId from StructFieldljedrz-25/+26
2019-03-02middle & privacy: partially HirIdifyljedrz-106/+120
2019-03-02Auto merge of #57202 - matthewjasper:nll-typeck-promoteds, r=pnkfelixbors-37/+229
Include bounds from promoted constants in NLL Previously a promoted function wouldn't have its bound propagated out to the main function body. When we visit a promoted, we now type check the MIR of the promoted and transfer any lifetime constraints to back to the main function's MIR. Fixes #57170 r? @nikomatsakis
2019-03-01look for python2 symlinks before bootstrap pythonAndy Russell-1/+1
Before this commit, if you're running x.py directly on a system where `python` is symlinked to Python 3, then the `python` config option will default to a Python 3 interpreter. This causes debuginfo tests to fail with an opaque error message, since they have a hard requirement on Python 2. This commit modifies the Python probe behavior to look for python2.7 and python2 *before* using the interpreter used to execute `x.py`.
2019-03-01fix an issue with path probing on WindowsAndy Russell-7/+9
The old logic would incorrectly look for "python2.exe" when searching for "python2.7.exe".
2019-03-02Auto merge of #56946 - Zoxc:jobserver, r=nikomatsakisbors-32/+176
Add support for using a jobserver with Rayon The Rayon changes are here: https://github.com/Zoxc/rayon/pull/2 cc @alexcrichton r? @nikomatsakis
2019-03-01Expand where negative supertrait specific error is shownEsteban Küber-24/+43
Fix #58857.
2019-03-01Auto merge of #58800 - ehuss:update-books, r=Centrilbors-1/+1
Update edition-guide 15 commits in 419edb885ec1a98c0747b3907003d79e3e6b93a9..5f3cc2a5618700efcde3bc00799744f21fa9ad2e 2018-12-04 16:43:38 -0500 to 2019-02-27 20:11:50 -0800 - Migrate to mdbook 0.2. (rust-lang-nursery/edition-guide#152) - Remove automatic deployment. (rust-lang-nursery/edition-guide#151) - Fix issue with rust's linkchecker and mdbook. (rust-lang-nursery/edition-guide#147) - Fix test now that overflowing_literals is rejected in all editions. (rust-lang-nursery/edition-guide#148) - overflowing_literals is deny on all editions (rust-lang-nursery/edition-guide#146) - Update for uniform_path stabilization. (rust-lang-nursery/edition-guide#141) - Add example to rustup to show overriding to specific version (rust-lang-nursery/edition-guide#144) - Update for anonymous-lifetime stabilization. (rust-lang-nursery/edition-guide#142) - Add minimum Rust version for Kleene operator (rust-lang-nursery/edition-guide#137) - Add 2018-specific changes. (rust-lang-nursery/edition-guide#130) - aborting-on-panic.md: Typo in example config (rust-lang-nursery/edition-guide#125) - Clarify uniform paths are not yet in Rust 2018 (rust-lang-nursery/edition-guide#124) - update several version numbers - Fixes outdated link (rust-lang-nursery/edition-guide#131) - Fixed typo in transitioning page. (rust-lang-nursery/edition-guide#127)
2019-03-01Add back in MSVC version check for LLVMAlex Crichton-0/+0
2019-03-01Handle type annotations in promoted MIR correctlyMatthew Jasper-15/+46
Type annotations are shared between the MIR of a function and the promoted constants for that function, so keep them in the type checker when we check the promoted MIR.
2019-03-01Remove unnecessary parameterMatthew Jasper-4/+2
2019-03-01Include bounds from promoted constants in NLLMatthew Jasper-22/+185
Previously, a promoted that contains a function item wouldn't have the function items bounds propagated to the main function body.
2019-03-01Update toolchain to build NetBSD releaseAlex Crichton-24/+8
This allows us to remove the "allow old toolchains" flag we pass to LLVM, ensuring that we'll be up to date when LLVM needs us to be!
2019-03-01Schedule the demolition of `IsNotPromotable`Oliver Scherer-0/+2
2019-03-01Auto merge of #58754 - ljedrz:I_hate_NodeIds, r=Zoxcbors-429/+368
Remove NodeId from more HIR nodes The next iteration of HirIdification (#57578). Removes `NodeId` from: - [x] `Stmt` - [x] `Local` - [x] `Field` - [x] `AnonConst` - [x] `TraitItem` - [x] `ImplItem` - [x] `TypeBinding` - [x] `Arg` - [x] `TraitRef` - [x] `VisibilityKind` It will most probably break clippy again; I'd appreciate a **delegate** again if/when it is good to go so I can attach a clippy fix later. r? @Zoxc
2019-03-01Forbid duplicating Cargo as a dependencyMateusz Mikuła-1/+1
2019-03-01Fix typo in Vec#resize_with documentationJens Hausdorf-1/+1
2019-03-01tools/remote-test-{client,server}: deny(rust_2018_idioms)Mazdak Farrokhzad-2/+6
2019-03-01hir: remove NodeId from VisibilityKindljedrz-9/+5
2019-03-01hir: remove NodeId from TraitRefljedrz-15/+7
2019-03-01hir: remove NodeId from Argljedrz-4/+1
2019-03-01hir: remove NodeId from TypeBindingljedrz-8/+3
2019-03-01hir: remove NodeId from ImplItemljedrz-27/+30
2019-03-01ty: HirIdify some lintsljedrz-89/+62
2019-03-01hir: remove NodeId from TraitItemljedrz-148/+149
2019-03-01middle: HirIdify deadljedrz-58/+59
2019-03-01hir: remove NodeId from AnonConstljedrz-23/+21
2019-03-01hir: remove NodeId from Fieldljedrz-6/+2
2019-03-01hir: remove NodeId from Localljedrz-23/+20
2019-03-01hir: remove NodeId from Stmtljedrz-19/+9
2019-03-01tools/rustbook: deny(rust_2018_idioms)Mazdak Farrokhzad-4/+5
2019-03-01Auto merge of #58631 - spastorino:place2_1, r=oli-obkbors-352/+441
Put Local, Static and Promoted as one Base variant of Place Related to #52708 The `Place` 2.0 representation use a `Base` variant for `Local`, `Static` and `Promoted` so we start making this change in the current `Place` to make the following steps simpler. r? @oli-obk
2019-03-01librustc_interface: Update scoped-tls to 1.0Igor Matuszewski-1/+1
Done previously as a part of https://github.com/rust-lang/rust/pull/58748
2019-03-01tidy: deny(rust_2018_idioms)Mazdak Farrokhzad-8/+9
2019-03-01Auto merge of #58689 - memoryruins:exclude_should_panic, r=oli-obkbors-0/+39
Add unstable option to ignore should_panic tests Add an unstable option `--exclude-should-panic` to libtest to workaround https://github.com/rust-lang/miri/issues/636 ?r @oli-obk cc @RalfJung
2019-03-01Put Local, Static and Promoted as one Base variant of PlaceSantiago Pastorino-352/+441
2019-02-28Use the correct stderr when testing libstdJethro Beekman-19/+41
2019-03-01Auto merge of #58408 - alexcrichton:update-llvm, r=michaelwoeristerbors-152/+10
rustc: Update LLVM, remove dead wasm code This commit updates the LLVM branch to the rebased version of the upstream release/8.x branch. This includes a wasm patch which means that the `rewrite_imports` pass in rustc is no longer needed (yay!) and we can instead rely on `wasm-import-module`, an attribute we're already emitting, to take care of all the work.
2019-03-01Fix importJohn Kåre Alsaker-0/+1