about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-09-17update miriRalf Jung-10/+5
2019-09-17rename Allocation::retag -> with_tags_and_extraRalf Jung-2/+2
2019-09-17Auto merge of #64535 - Centril:rollup-wiyxagi, r=Centrilbors-458/+627
Rollup of 6 pull requests Successful merges: - #64085 (Tweak unsatisfied HRTB errors) - #64380 (Update bundled OpenSSL to 1.1.1d) - #64416 (Various refactorings to clean up nll diagnostics) - #64500 (Various `ObligationForest` improvements) - #64530 (Elide lifetimes in `Pin<&(mut) Self>`) - #64531 (Use shorthand syntax in the self parameter of methods of Pin) Failed merges: r? @ghost
2019-09-17Rollup merge of #64531 - taiki-e:pin-self, r=CentrilMazdak Farrokhzad-9/+9
Use shorthand syntax in the self parameter of methods of Pin
2019-09-17Rollup merge of #64530 - taiki-e:docs-pin-lifetimes, r=CentrilMazdak Farrokhzad-4/+4
Elide lifetimes in `Pin<&(mut) Self>`
2019-09-17Rollup merge of #64500 - nnethercote:ObligForest-fixups, r=nikomatsakisMazdak Farrokhzad-167/+148
Various `ObligationForest` improvements These commits make the code both nicer and faster. r? @nikomatsakis
2019-09-17Rollup merge of #64416 - mark-i-m:region-naming-ctx, r=estebankMazdak Farrokhzad-214/+316
Various refactorings to clean up nll diagnostics - Create ErrorReportingCtx and ErrorConstraintInfo, vasting reducing the number of arguments passed around everywhere in the error reporting code - Create RegionErrorNamingCtx, making a given lifetime have consistent numbering thoughout all error messages for that MIR def. - Make the error reporting code return the DiagnosticBuilder rather than directly buffer the Diagnostic. This makes it easier to modify the diagnostic later, e.g. to add suggestions. r? @estebank Split out from https://github.com/rust-lang/rust/pull/58281
2019-09-17Rollup merge of #64380 - alexcrichton:update-openssl, r=Mark-SimulacrumMazdak Farrokhzad-2/+2
Update bundled OpenSSL to 1.1.1d Brings in a few minor security fixes to the distributed Cargo/etc.
2019-09-17Rollup merge of #64085 - estebank:hrtb-errors, r=oli-obkMazdak Farrokhzad-62/+148
Tweak unsatisfied HRTB errors r? @oli-obk Close #35180.
2019-09-17Use shorthand syntax in the self parameter of methods of PinTaiki Endo-9/+9
2019-09-17Elide lifetimes in `Pin<&(mut) Self>`Taiki Endo-4/+4
2019-09-16Tweak unsatisfied HRTB errorsEsteban Küber-62/+148
2019-09-16Auto merge of #64526 - Centril:rollup-k4cz2xn, r=Centrilbors-39/+54
Rollup of 4 pull requests Successful merges: - #64357 (`AdtDef` is an algebraic data type, not abstract data type) - #64485 (update Miri) - #64509 (Make some adjustments to the documentation for `std::convert::identity`) - #64518 (Use while let slice_pattern instead of carrying an index around) Failed merges: r? @ghost
2019-09-16Rollup merge of #64518 - spastorino:while-let-to-iterate-over-proj-slice, ↵Mazdak Farrokhzad-16/+24
r=oli-obk Use while let slice_pattern instead of carrying an index around r? @oli-obk
2019-09-16Rollup merge of #64509 - varkor:convert-identity-doc-fixes, r=CentrilMazdak Farrokhzad-8/+9
Make some adjustments to the documentation for `std::convert::identity` Fixes some extra blank lines and makes some minor tweaks to the wording.
2019-09-16Rollup merge of #64485 - RalfJung:miri, r=alexcrichtonMazdak Farrokhzad-14/+14
update Miri Fixes https://github.com/rust-lang/rust/issues/64363 r? @alexcrichton for the Cargo.toml changes: with byteorder 1.3, the `i128` feature is a NOP, so we can remove it everywhere and then get rid of this crate in the workspace-hack.
2019-09-16Rollup merge of #64357 - rust-lang:adt-docs-fix, r=varkorMazdak Farrokhzad-1/+7
`AdtDef` is an algebraic data type, not abstract data type r? @varkor
2019-09-16Use while let slice_pattern instead of carrying an index aroundSantiago Pastorino-16/+24
2019-09-16update miri for latest breakageRalf Jung-8/+8
2019-09-16with byteorder 1.3, the i128 feature is a NOPRalf Jung-4/+2
2019-09-16update miriRalf Jung-10/+12
2019-09-16`AdtDef` is an algebraic data type, not abstract data type.Mazdak Farrokhzad-1/+7
2019-09-16Auto merge of #64510 - Centril:rollup-m03zsq8, r=Centrilbors-247/+478
Rollup of 10 pull requests Successful merges: - #63955 (Make sure interned constants are immutable) - #64028 (Stabilize `Vec::new` and `String::new` as `const fn`s) - #64119 (ci: ensure all tool maintainers are assignable on issues) - #64444 (fix building libstd without backtrace feature) - #64446 (Fix build script sanitizer check.) - #64451 (when Miri tests are not passing, do not add Miri component) - #64467 (Hide diagnostics emitted during --cfg parsing) - #64497 (Don't print the "total" `-Ztime-passes` output if `--prints=...` is also given) - #64499 (Use `Symbol` in two more functions.) - #64504 (use println!() instead of println!("")) Failed merges: r? @ghost
2019-09-16Rollup merge of #64504 - guanqun:use-println-without-empty-str, ↵Mazdak Farrokhzad-26/+26
r=jonas-schievink use println!() instead of println!("") The empty string is unnecessary.
2019-09-16Rollup merge of #64499 - nnethercote:use-Symbol-in-two-more-functions, ↵Mazdak Farrokhzad-22/+22
r=petrochenkov Use `Symbol` in two more functions. r? @petrochenkov
2019-09-16Rollup merge of #64497 - nnethercote:fix-64339, r=petrochenkovMazdak Farrokhzad-1/+4
Don't print the "total" `-Ztime-passes` output if `--prints=...` is also given Fixes #64339.
2019-09-16Rollup merge of #64467 - Mark-Simulacrum:hide-cfg-failures, r=estebankMazdak Farrokhzad-1/+17
Hide diagnostics emitted during --cfg parsing The early error is more than sufficient for fixing the problem. Fixes https://github.com/rust-lang/rust/issues/31496.
2019-09-16Rollup merge of #64451 - RalfJung:miri-manifest, r=pietroalbiniMazdak Farrokhzad-9/+63
when Miri tests are not passing, do not add Miri component This makes build-manifest query the toolstate repo at https://github.com/rust-lang-nursery/rust-toolstate to figure out if the tests of the Miri component are passing. If they are not, we remove the component from the manifest, to avoid shipping a broken Miri. I tested this locally by running build-manifest and making sure that it correctly detects the toolstate of 02785dabad07d19b8c76a7f86763801d5d3497ff as broken. r? @pietroalbini Cc @kennytm @alexcrichton Fixes https://github.com/rust-lang/rust/issues/60301
2019-09-16Rollup merge of #64446 - ehuss:fix-sanitizer-build, r=alexcrichtonMazdak Farrokhzad-0/+4
Fix build script sanitizer check. #64166 changed the way the sanitizer build scripts work. However, they were changed so that they switch between new-style to old-style cargo fingerprints. This trips up on https://github.com/rust-lang/cargo/issues/6779. It also causes rustbuild to panic. If you build stage1 std (with sanitizers off), and then enable sanitizers, it panics. (This is because the build scripts don't declare that they need to re-run.) This PR will trip https://github.com/rust-lang/cargo/issues/6779 again, unfortunately. I've been having way too many unexplained rebuilds in rust-lang/rust recently, but at least I'll know why this time. This doesn't fix all problems with the build scripts, but arguably they should be fixed in cargo. For example, the build scripts change which rerun-if statements they declare between runs which triggers https://github.com/rust-lang/cargo/issues/7362. The test for this is: 1. Turn off sanitizers (which is the default) 2. `./x.py build --stage=1 src/libstd` 3. `./x.py build --stage=1 src/libstd` again should be a null build. 4. Enable sanitizers. 5. `./x.py build --stage=1 src/libstd` should rebuild with sanitizers enabled. 6. `./x.py build --stage=1 src/libstd` again should be a null build. This actually rebuilds due to https://github.com/rust-lang/cargo/issues/7362 because the rerun-if directives changed between step 3 and 5. A 3rd attempt should be a null build.
2019-09-16Rollup merge of #64444 - RalfJung:no-backtrace, r=alexcrichtonMazdak Farrokhzad-27/+25
fix building libstd without backtrace feature Fixes https://github.com/rust-lang/rust/issues/64410 r? @alexcrichton
2019-09-16Rollup merge of #64119 - pietroalbini:validate-toolstate-maintainers, r=kennytmMazdak Farrokhzad-19/+87
ci: ensure all tool maintainers are assignable on issues GitHub only allows people explicitly listed as collaborators on the repository or who commented on the issue/PR to be assignees, failing to create the issue if non-assignable people are assigned. This adds an extra check on CI to make sure all the people listed as tool maintainers can be assigned to toolstate issues. The check won't be executed on PR builds due to the lack of a valid token. r? @kennytm
2019-09-16Rollup merge of #64028 - Centril:stabilize-alloc-new-2, r=alexcrichtonMazdak Farrokhzad-21/+35
Stabilize `Vec::new` and `String::new` as `const fn`s Closes https://github.com/rust-lang/rust/issues/64022. r? @oli-obk
2019-09-16Rollup merge of #63955 - RalfJung:intern, r=oli-obkMazdak Farrokhzad-121/+195
Make sure interned constants are immutable This makes sure that interning for constants (not statics) creates only immutable allocations. Previously, the "main" allocation of `const FOO: Cell<i32> = Cell::new(0);` was marked as mutable, but I don't think we want that. It can be only copied, not written to. Also, "leftover" allocations (behind raw pointers etc) were left mutable. I don't think we want to support that. I tried asserting that these are all already immutable (to double-check our static checks), but that failed in this one: ```rust const NON_NULL_PTR2: NonNull<u8> = unsafe { mem::transmute(&0) }; ``` Seems like maybe we want more precise mutability annotation inside Miri for locals (like `&0` here) so that this would actually become immutable to begin with? I also factored `intern_shallow` out of the visitor so that we don't have to construct a visitor when we do not plan to visit anything. That confused me at first.
2019-09-16Const-stabilize `String::new`.Mazdak Farrokhzad-4/+2
2019-09-16Const-stabilize `Vec::new`.Mazdak Farrokhzad-17/+33
2019-09-16Make some adjustments to the documentation for `std::convert::identity`varkor-8/+9
Fixes some extra blank lines and makes some minor tweaks to the wording.
2019-09-16avoid #[cfg] in favor of cfg!Ralf Jung-13/+7
2019-09-16ci: remove projektir from toolstate notificationsPietro Albini-1/+1
They don't contribute to rust-by-example anymore.
2019-09-16ci: convert maintainer list in publish_toolstate to a setPietro Albini-22/+23
2019-09-16ci: address publish_toolstate review commentsPietro Albini-10/+10
2019-09-16ci: rename Gankro to Gankra in toolstatePietro Albini-1/+1
2019-09-16ci: ensure all tool maintainers are assignable on issuesPietro Albini-0/+67
GitHub only allows people explicitly listed as collaborators on the repository or who commented on the issue/PR to be assignees, failing to create the issue if non-assignable people are assigned. This adds an extra check on CI to make sure all the people listed as tool maintainers can be assigned to toolstate issues. The check won't be executed on PR builds due to the lack of a valid token.
2019-09-16Auto merge of #64381 - mati865:rand, r=alexcrichtonbors-10/+10
Upgrade parking_lot and tempfile rustc dependencies This should be last piece to unbreak `rustc` in https://github.com/rust-lang/rust/issues/63848
2019-09-16Auto merge of #64383 - pcpthm:btreeset-size-hint, r=dtolnaybors-22/+33
Improve BTreeSet::Intersection::size_hint A comment on `IntersectionInner` mentions `small_iter` should be smaller than `other_iter` but this condition is broken while iterating because those two iterators can be consumed at a different rate. I added a test to demonstrate this situation. <del>I made `small_iter.len() < other_iter.len()` always true by swapping two iterators when that condition became false. This change affects the return value of `size_hint`. The previous result was also correct but this new version always returns smaller upper bound than the previous version.</del> I changed `size_hint` to taking minimum of both lengths of iterators and renamed fields to `a` and `b` to match `Union` iterator.
2019-09-16Use `Symbol` in two more functions.Nicholas Nethercote-22/+22
2019-09-16Improve BTreeSet::Intersection::size_hintpcpthm-22/+33
The commented invariant that an iterator is smaller than other iterator was violated after next is called and two iterators are consumed at different rates.
2019-09-16Don't print the "total" `-Ztime-passes` output if `--prints=...` is also given.Nicholas Nethercote-1/+4
Fixes #64339.
2019-09-16Move `impl Node` just after `struct Node`.Nicholas Nethercote-16/+16
2019-09-16Minor comment tweaks.Nicholas Nethercote-10/+6
2019-09-16Use `retain` for `waiting_cache` in `apply_rewrites()`.Nicholas Nethercote-6/+4
It's more concise, more idiomatic, and measurably faster.