about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-10-08Update ui testsGuillaume Gomez-1/+2
2019-10-08Add long error explanation for E0567Guillaume Gomez-1/+28
2019-10-08suggest to add move keyword for generatorcsmoe-5/+47
2019-10-08Disable Go and OCaml bindings when building LLVMTomasz Miąsko-9/+1
Instead of instaling OCaml bindings in a location where installation will not fail, don't build them in the first place.
2019-10-08Add ?Sized bound to a supertrait listing in E0038 error documentationKonrad Borowski-4/+4
This example failed to compile because of implicit `Sized` bound for `A` parameter that wasn't required by `Trait`.
2019-10-08Auto merge of #64949 - nnethercote:avoid-SmallVec-collect, r=zackmdavisbors-12/+73
Avoid `SmallVec::collect` We can get sizeable speed-ups by avoiding `SmallVec::collect` when the number of elements is small.
2019-10-08Optimize `TokenStreamBuilder::push`.Nicholas Nethercote-51/+43
Currently, when two tokens must be glued together, this function duplicates large chunks of the existing streams. This can cause quadratic behaviour. This commit changes the function so that it overwrites the last token with a glued token, which avoids the quadratic behaviour. This removes the need for `TokenStreamBuilder::push_all_but_{first,last}_tree`. The commit also restructures `push` somewhat, by removing `TokenStream::{first_tree_and_joint,last_tree_if_joint}` in favour of more pattern matching and some comments. This makes the code shorter, and in my opinion, more readable.
2019-10-08Optimize `TokenStream::from_streams`.Nicholas Nethercote-10/+37
Currently, this function creates a new empty stream, and then appends the elements from each given stream onto that stream. This can cause quadratic behaviour. This commit changes the function so that it modifies the first stream (which can be long) by extending it with the elements from the subsequent streams (which are almost always short), which avoids the quadratic behaviour.
2019-10-08Remove `InferCtxt::in_snapshot()`.Nicholas Nethercote-34/+23
It's the same as `InferCtxt::commit_unconditionally()` except that it is passed a snapshot and has a worse name. The commit also changes `commit_unconditionally()` to receive a snapshot, for consistency with `commit_if_ok()` and `probe()`.
2019-10-08Clarify a comment in `RegionConstraintCollector::leak_check`.Nicholas Nethercote-3/+5
2019-10-08Auto merge of #65196 - Centril:rollup-q06lcxm, r=Centrilbors-309/+469
Rollup of 8 pull requests Successful merges: - #64726 (rewrite documentation for unimplemented! to clarify use) - #65040 (syntax: more cleanups in item and function signature parsing) - #65046 (Make `Cell::new` method come first in documentation) - #65098 (Add long error explanation for E0561) - #65150 (Suggest dereferencing boolean reference when used in 'if' or 'while') - #65154 (Fix const generic arguments not displaying in types mismatch diagnostic) - #65181 (fix bug in folding for constants) - #65187 (use 'invalid argument' for vxWorks) Failed merges: - #65179 (Add long error explanation for E0567) r? @ghost
2019-10-08Rollup merge of #65187 - Wind-River:master_before_merge, r=rkruppeMazdak Farrokhzad-1/+3
use 'invalid argument' for vxWorks vxWorks is using "invalid argument" instead of "Invalid argument" in reporting invalid options r? @rkruppe
2019-10-08Rollup merge of #65181 - nikomatsakis:lazy-norm-anon-const-push-1, r=varkorMazdak Farrokhzad-11/+26
fix bug in folding for constants These was a bug in the folding for constants that caused it to overlook bound regions. This branch includes some other little things that I did while trying to track the bug down. r? @oli-obk
2019-10-08Rollup merge of #65154 - skinny121:const-arg-diagnostic, r=varkorMazdak Farrokhzad-7/+72
Fix const generic arguments not displaying in types mismatch diagnostic Fixes #61395
2019-10-08Rollup merge of #65150 - XiangQingW:master, r=estebankMazdak Farrokhzad-11/+47
Suggest dereferencing boolean reference when used in 'if' or 'while' Implements #64557
2019-10-08Rollup merge of #65098 - GuillaumeGomez:long-err-explanation-E0561, r=CentrilMazdak Farrokhzad-3/+31
Add long error explanation for E0561 Part of #61137
2019-10-08Rollup merge of #65046 - sinkuu:cell_reorder, r=shepmasterMazdak Farrokhzad-46/+46
Make `Cell::new` method come first in documentation Methods to create a thing usually comes first in `std` documentation, and `Cell` has been an exception. Also, `T: Copy` specialized methods should not be on top of the page. (This had led me to miss that most of its methods are not bounded by `Copy`...)
2019-10-08Rollup merge of #65040 - Centril:items-cleanup, r=estebankMazdak Farrokhzad-215/+212
syntax: more cleanups in item and function signature parsing Follow up to https://github.com/rust-lang/rust/pull/64910. Best read commit-by-commit. r? @estebank
2019-10-08Rollup merge of #64726 - andrewbanchich:unimplemented, r=rkruppeMazdak Farrokhzad-15/+32
rewrite documentation for unimplemented! to clarify use The current docs for `unimplemented!` seem to miss the point of this macro. > This can be useful if you are prototyping and are just looking to have your code type-check, or if you're implementing a trait that requires multiple methods, and you're only planning on using one of them. You could also return a `()` if you just want your code to type-check. I think `unimplemented!` is useful for when you want your program to exit when it reaches an unimplemented area. I rewrote the explanation and gave examples of both forms of this macro that I think clarify its use a little better.
2019-10-08Auto merge of #65186 - mati865:cargoup, r=alexcrichtonbors-0/+0
Update Cargo To pull rust-lang/cargo#7482 List of merged PRs: - Fix wrong directories in PATH on Windows (rust-lang/cargo#7482) - Update SPDX list to 3.6 (rust-lang/cargo#7481) - Mark Emscripten's .wasm files auxiliary (rust-lang/cargo#7476) - Update `curl-sys` dependency requirement (rust-lang/cargo#7464) - add dependencies for `pkg-config` (rust-lang/cargo#7443) - Removing hash from output files when using MSVC (rust-lang/cargo#7400) - Disable preserving mtimes on archives (rust-lang/cargo#7465) - Removed redundant borrow (rust-lang/cargo#7462) - Public dependency refactor and re-allow backjumping (rust-lang/cargo#7361) - unify the quote in Cargo.toml (rust-lang/cargo#7461)
2019-10-07Warn if include macro fails to include entire fileMark Rousskov-2/+47
2019-10-07Use structured suggestion for removal of `as_str()` callEsteban Küber-10/+23
2019-10-07Add rustc-dev to nightly default and complete profilesJosh Stone-0/+15
2019-10-07Auto merge of #64358 - cuviper:rustc-rayon-1.2, r=nikomatsakisbors-10/+12
Rebase rustc-rayon on rayon-1.2 See also https://github.com/rust-lang/rustc-rayon/pull/3
2019-10-07Add a regression test for #57271varkor-0/+60
2019-10-07Add a regression test for #57399varkor-0/+30
2019-10-07Add regression test for #64792varkor-0/+20
2019-10-07Move stray issue tests into src/test/ui/issuesvarkor-0/+0
2019-10-07Add a regression test for issue 62187varkor-0/+32
2019-10-07Move const generic regression tests to their old foldervarkor-0/+0
2019-10-07Only install rustc-dev by default on nightlyJosh Stone-1/+9
2019-10-07add rustc-dev to tools/build-manifestJosh Stone-0/+7
2019-10-07add dist::RustcDev for unstable compiler librariesJosh Stone-58/+46
2019-10-07Use builder.compiler_for() to find the libstd stampJosh Stone-2/+2
2019-10-07[WIP] minimize the rust-std componentJosh Stone-2/+78
2019-10-07add crossbeam-queue to the whitelistJosh Stone-0/+1
2019-10-07Name the threads in rayon's poolJosh Stone-0/+1
2019-10-07Rebase rustc-rayon on rayon-1.2Josh Stone-10/+10
See also https://github.com/rust-lang/rustc-rayon/pull/3
2019-10-07use 'invalid argument' for vxWorksBaoshanPang-1/+3
2019-10-07Update CargoMateusz Mikuła-0/+0
2019-10-07Auto merge of #61430 - matthewjasper:drop-on-into-panic, r=oli-obkbors-286/+621
Make `into` schedule drop for the destination closes #47949
2019-10-07update ui testsGuillaume Gomez-7/+48
2019-10-07Add long error explanation for E0495Guillaume Gomez-2/+41
2019-10-07Fix syntax typo in error message.Adam Perry-1/+1
2019-10-07Clarify variable names when checking track_caller methods.Adam Perry-5/+4
2019-10-07Prohibit #[track_caller] within trait impls as well as decls.Adam Perry-2/+27
2019-10-07Update expected error output.Adam Perry-2/+2
2019-10-07Expand E0738 to cover different cases.Adam Perry-12/+93
2019-10-07E073[6-8] include failing code examples.Adam Perry-4/+43
2019-10-07E0735 -> E0739Adam Perry-3/+3
Prevents number collision with another approved PR.