about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-01-22Fix some cross crate existential type ICEsOliver Scherer-2/+68
2019-01-22unit test for issue 57673.Felix S. Klock II-0/+21
2019-01-22Do not initiate nested probe within `assemble_probe`.Felix S. Klock II-9/+7
In particular, the table entries (associated with type-variables created during the probe) must persist as long as the candidates assembled during the probe. If you make a nested probe without creating a nested `ProbeContext`, the table entries are popped at the end of the nested probe, while the type-variables would leak out via the assembled candidates attached to `self` (the outer `ProbeContext`). This causes an ICE (*if you are lucky*)!
2019-01-22Auto merge of #57830 - Centril:rollup, r=Centrilbors-283/+494
Rollup of 9 pull requests Successful merges: - #57537 (Small perf improvement for fmt) - #57552 (Default images) - #57604 (Make `str` indexing generic on `SliceIndex`.) - #57667 (Fix memory leak in P::filter_map) - #57677 (const_eval: Predetermine the layout of all locals when pushing a stack frame) - #57791 (Add regression test for #54582) - #57798 (Corrected spelling inconsistency) - #57809 (Add powerpc64-unknown-freebsd) - #57813 (fix validation range printing when encountering undef) Failed merges: r? @ghost
2019-01-22Stabilize Any::get_type_id and rename to type_idSimon Sapin-12/+7
FCP: https://github.com/rust-lang/rust/issues/27745#issuecomment-373906749
2019-01-22Print a slightly clearer message when failing to spawn a threadJethro Beekman-1/+1
2019-01-22Rollup merge of #57813 - RalfJung:validation-range-printing, r=oli-obkMazdak Farrokhzad-5/+25
fix validation range printing when encountering undef
2019-01-22Rollup merge of #57809 - MikaelUrankar:powerpc64-unknown-freebsd, r=nagisaMazdak Farrokhzad-0/+23
Add powerpc64-unknown-freebsd FreeBSD review: https://reviews.freebsd.org/D18367
2019-01-22Rollup merge of #57798 - hellow554:master, r=davidtwcoMazdak Farrokhzad-16/+16
Corrected spelling inconsistency resolves #57773
2019-01-22Rollup merge of #57791 - estebank:issue-54582, r=zackmdavisMazdak Farrokhzad-0/+16
Add regression test for #54582 Fix #54582.
2019-01-22Rollup merge of #57677 - dotdash:locals, r=michaelwoeristerMazdak Farrokhzad-18/+24
const_eval: Predetermine the layout of all locals when pushing a stack frame Usually the layout of any locals is required at least three times, once when it becomes live, once when it is written to, and once it is read from. By adding a cache for them, we can reduce the number of layout queries speeding up code that is heavy on const_eval.
2019-01-22Rollup merge of #57667 - ishitatsuyuki:p-leak, r=nnethercoteMazdak Farrokhzad-0/+1
Fix memory leak in P::filter_map Probably this function isn't widely used, but anyway this wasn't working as intended. r? @eddyb Do not rollup if you want to see if max-rss change in perf.
2019-01-22Rollup merge of #57604 - alercah:str-index, r=sfacklerMazdak Farrokhzad-235/+239
Make `str` indexing generic on `SliceIndex`. Fixes #55603
2019-01-22Rollup merge of #57552 - GuillaumeGomez:default-images, r=QuietMisdreavusMazdak Farrokhzad-4/+20
Default images Add default rust logo (the image at the top of the sidebar) and default favicon. No more missing image or inexistent icon on the documentation tabs! r? @QuietMisdreavus
2019-01-22Rollup merge of #57537 - sinkuu:fmt_perf, r=alexcrichtonMazdak Farrokhzad-5/+130
Small perf improvement for fmt Added benchmark is based on #10761
2019-01-22Auto merge of #56221 - estebank:remove-dummy-checks, r=varkorbors-18/+24
Remove unnecessary dummy span checks The emitter already verifies wether a given span note or span label can be emitted to the output. If it can't, because it is a dummy span, it will be either elided for labels or emitted as an unspanned note/help when applicable.
2019-01-22Fixed Deref coercion explanation for DerefMut using shared referencesdanielhenrymantilla-1/+1
2019-01-22Add intrinsic to create an integer bitmask from the MSB of integer vectorsgnzlbg-0/+288
2019-01-22Auto merge of #57821 - RalfJung:miri, r=oli-obkbors-14/+14
update miri r? @oli-obk
2019-01-22Ignore aarch64 in simd-intrinsic-generic-reductionJames Duley-0/+1
This fails on AArch64 see https://github.com/rust-lang/rust/issues/54510
2019-01-22Corrected spelling inconsistencyMarcel Hellwig-16/+16
resolves #57773
2019-01-22Auto merge of #57475 - SimonSapin:signed, r=estebankbors-24/+42
Add signed num::NonZeroI* types Multiple people have asked for them in https://github.com/rust-lang/rust/issues/49137. Given that the unsigned ones already exist, they are very easy to add and not an additional maintenance burden.
2019-01-21Fix typovarkor-1/+1
Co-Authored-By: estebank <estebank@users.noreply.github.com>
2019-01-21Fix typovarkor-1/+1
Co-Authored-By: estebank <estebank@users.noreply.github.com>
2019-01-21Accept more invalid code that is close to correct fieldsEsteban Küber-13/+23
2019-01-22Extend trailing `>` detection for paths.David Wood-33/+131
This commit extends the trailing `>` detection to also work for paths such as `Foo::<Bar>>:Baz`. This involves making the existing check take the token that is expected to follow the path being checked as a parameter. Care is taken to ensure that this only happens on the construction of a whole path segment and not a partial path segment (during recursion). Through this enhancement, it was also observed that the ordering of right shift token and greater than tokens was overfitted to the examples being tested. In practice, given a sequence of `>` characters: `>>>>>>>>>` ..then they will be split into `>>` eagerly: `>> >> >> >> >`. ..but when a `<` is prepended, then the first `>>` is split: `<T> > >> >> >> >` ..and then when another `<` is prepended, a right shift is first again: `Vec<<T>> >> >> >> >` In the previous commits, a example that had two `<<` characters was always used and therefore it was incorrectly assumed that `>>` would always be first - but when there is a single `<`, this is not the case.
2019-01-21Move logic to its own methodEsteban Küber-73/+63
2019-01-21Auto merge of #55009 - oli-obk:const_safety, r=RalfJungbors-115/+225
Make raw ptr ops unsafe in const contexts r? @RalfJung cc @Centril
2019-01-21Pluralize error messages.David Wood-8/+15
This commit pluralizes error messages when more than a single trailing `>` character is present.
2019-01-21Add error for trailing angle brackets.David Wood-0/+197
This commit adds a error (and accompanying machine applicable suggestion) for trailing angle brackets on function calls with a turbofish.
2019-01-21un-deprecate mem::zeroedRalf Jung-1/+0
2019-01-21update miriRalf Jung-14/+14
2019-01-21Speed up the fast path for assert_eq! and assert_ne!Björn Steinbrink-4/+16
Currently, the panic!() calls directly borrow the value bindings. This causes those bindings to always be initialized, i.e. they're initialized even before the values are even compared. This causes noticeable overhead in what should be a really cheap operation. By performing a reborrow of the value in the call to panic!(), we allow LLVM to optimize that code, so that the extra borrow only happens in the error case. We could achieve the same result by dereferencing the values passed to panic!(), as the format machinery borrows them anyway, but this causes assertions to fail to compile if one of the values is unsized, i.e. it would be a breaking change.
2019-01-21fix validation range printing when encountering undefRalf Jung-5/+25
2019-01-21Add powerpc64-unknown-freebsdYour Name-0/+23
2019-01-21Fix some non-determinism in help messages for E0277 errors.Simon Sapin-7/+11
The diagnostic for this error prints `the following implementations were found` followed by the first N relevant impls, sorted. This commit makes the sort happen before slicing, so that the set of impls being printed is deterministic when the input is not.
2019-01-21Update libunwind for SGX targetJethro Beekman-1/+1
2019-01-21Expose alloc/dealloc properly for SGX libunwindJethro Beekman-0/+15
2019-01-21Declare some unconst operations as unsafe in const fnOliver Scherer-98/+187
2019-01-21Auto merge of #55045 - kleimkuhler:add-std-is_sorted, r=KodrAusbors-4/+271
Add `is_sorted` to `Iterator` and `[T]` This is an initial implementation for the first step of [RFC 2351](https://github.com/rust-lang/rfcs/blob/master/text/2351-is-sorted.md) Tracking issue: https://github.com/rust-lang/rust/issues/53485
2019-01-21Print visible name for types as well as modules.David Wood-14/+37
This commit extends previous work in #55007 where the name from the visible parent was used for modules. Now, we also print the name from the visible parent for types.
2019-01-21Auto merge of #57756 - matthiaskrgr:clippy_submodule_upd, r=oli-obkbors-16/+8
submodules: update clippy from 1b89724b to e648adf0 Fixes clippy toolstate Changes: ```` Catch up with `format_args` change Fix bad `while_let_on_iterator` suggestion. rustup https://github.com/rust-lang/rust/pull/57747 Fixing issues pointed out by dogfood tests. Update to collect all the files then throw the error. Adding a test for checking if test files are missing. Remove bors.toml add applicability to lint name suggestion ```` r? @oli-obk
2019-01-21Differentiate between closure and function bodiesOliver Scherer-17/+38
2019-01-21Auto merge of #57792 - Centril:rollup, r=Centrilbors-88/+484
Rollup of 5 pull requests Successful merges: - #56796 (Change bounds on `TryFrom` blanket impl to use `Into` instead of `From`) - #57768 (Continue parsing after parent type args and suggest using angle brackets) - #57769 (Suggest correct cast for struct fields with shorthand syntax) - #57783 (Add "dereference boxed value" suggestion.) - #57784 (Add span for bad doc comment) Failed merges: r? @ghost
2019-01-20Use structured suggestion in stead of notesEsteban Küber-41/+44
2019-01-21Auto merge of #57708 - nbigaouette:pr-53774-fix-missing-rust-gdbui-install, ↵bors-0/+2
r=Mark-Simulacrum Install missing 'rust-gdbui'' PR #53774 added `rust-gdbui` as wrapper to launch [gdbui](https://gdbgui.com/), similar to `rust-gdb`. Unfortunately I've never seen the script in my local installation (from rustup, using rust 1.31.1). @tromey on the PR [suggested it might be missing](https://github.com/rust-lang/rust/pull/53774#issuecomment-419704939) from the installation process. This PR simply adds a line for `rust-gdbui` too.
2019-01-20Explain type mismatch cause pointing to return type when it is `impl Trait`Esteban Küber-9/+39
2019-01-21submodules: update clippy from 1b89724b to 1838bfe5Matthias Krüger-16/+8
Changes: ```` Fixing typo in CONTRIBUTING.md Fix breakage due to rust-lang/rust#57651 Run rustfmt Fixed breakage due to rust-lang/rust#57489 Fix breakage due to rust-lang/rust#57755 Catch up with `format_args` change Fix bad `while_let_on_iterator` suggestion. rustup https://github.com/rust-lang/rust/pull/57747 Fixing issues pointed out by dogfood tests. Update to collect all the files then throw the error. Adding a test for checking if test files are missing. Remove bors.toml add applicability to lint name suggestion ````
2019-01-21Rollup merge of #57784 - JohnTitor:improve-error-message, r=estebankMazdak Farrokhzad-7/+11
Add span for bad doc comment Fixes #57382 r? @estebank
2019-01-21Rollup merge of #57783 - davidtwco:issue-57741, r=estebankMazdak Farrokhzad-2/+183
Add "dereference boxed value" suggestion. Contributes to #57741. This PR adds a `help: consider dereferencing the boxed value` suggestion to discriminants of match statements when the match arms have type `T` and the discriminant has type `Box<T>`. r? @estebank