about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-10-04Rollup merge of #64749 - matthewjasper:liveness-opt, r=nikomatsakisMazdak Farrokhzad-528/+142
Fix most remaining Polonius test differences This fixes most of the Polonius test differences and also avoids overflow in issue-38591.rs. r? @nikomatsakis
2019-10-03review commentsEsteban Küber-47/+51
2019-10-03Remove -Zprofile-queriesMark Rousskov-771/+11
2019-10-03Rollup merge of #65057 - mathstuf:fix-warning-typo, r=CentrilTyler Mandry-22/+22
typo: fix typo in E0392 See #64931. --- Cc: @Centril @estebank
2019-10-03Rollup merge of #65056 - spastorino:place-mut-visitor-adjusts, r=oli-obkTyler Mandry-87/+110
Make visit projection iterative r? @oli-obk /cc @nikomatsakis
2019-10-03Rollup merge of #65055 - GuillaumeGomez:long-err-explanation-E0556, ↵Tyler Mandry-2/+21
r=petrochenkov Add long error explanation for E0556 Part of #61137
2019-10-03Rollup merge of #65018 - Aaron1011:fix/backtrace-stderr, r=nikomatsakisTyler Mandry-4/+8
Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr This removes the implicit dependency on the environment variables set when running `./x.py test`
2019-10-03Rollup merge of #65004 - BO41:mentions, r=alexcrichtonTyler Mandry-3/+5
Replace mentions of IRC with Discord Revival of #61531 closes #61524 what was the outcome of this? https://github.com/rust-lang/rust/pull/61531#issuecomment-500452638 should this be changed in this PR as well? https://github.com/rust-lang/rust/pull/61531#issuecomment-501473787
2019-10-03Rollup merge of #64842 - ↵Tyler Mandry-6/+169
pnkfelix:fix-issue-61631-self-in-type-param-default, r=alexreg Disallow Self in type param defaults of ADTs Fix #61631 (also includes a drive-by fix to a typo in some related diagnostic output.)
2019-10-03Rollup merge of #64741 - GuillaumeGomez:prevent-rustdoc-feature-doctests, ↵Tyler Mandry-3/+27
r=QuietMisdreavus Prevent rustdoc feature doctests Part of https://github.com/rust-lang/rust/pull/61351 cc @ollie27
2019-10-03Rollup merge of #64706 - nikomatsakis:issue-60218-test-case, r=centrilTyler Mandry-0/+34
add regression test for #60218 Fixes #60218
2019-10-03Rollup merge of #64690 - petrochenkov:mixed, r=dtolnayTyler Mandry-35/+179
proc_macro API: Expose `macro_rules` hygiene Proc macros do not have direct access to our oldest and most stable hygiene kind - `macro_rules` hygiene. To emulate it macro authors have to go through two steps - first generate a temporary `macro_rules` item (using a derive, at least until https://github.com/rust-lang/rust/pull/64035 is merged), then generate a macro call to that item. Popular crates like [proc_macro_hack](https://crates.io/crates/proc-macro-hack) use this trick to generate hygienic identifiers from proc macros. I'd say that these workarounds with nested macro definitions have more chances to hit some corner cases in our hygiene system, in which we don't have full confidence. So, let's provide a direct access to `macro_rules` hygiene instead. This PR does that by adding a new method `Span::mixed_site` (bikeshedding is welcome) in addition to existing `Span::call_site` (stable) and `Span::def_site` (unstable). Identifiers with this span resolve at def-site in for local variables, labels and `$crate`, and resolve at call-site for everything else, i.e. exactly like identifiers produced by `macro_rules`. This API addition opens the way to stabilizing proc macros in expression positions (https://github.com/rust-lang/rust/issues/54727), for which use of call-site hygiene or workarounds with temporary items would be quite unfortunate. (`macro_rules` expanded in expression position, on the other hand, are stable since 1.0 and widely used.) r? @dtolnay @alexcrichton
2019-10-03Rollup merge of #64675 - Centril:deprecate-plugin, r=oli-obkTyler Mandry-244/+579
Deprecate `#![plugin]` & `#[plugin_registrar]` This PR deprecates `#![plugin]` and `#[plugin_registrar]`. ~A removal deadline is set: 1.44.0. This will be in 9 months from now and should give everyone who is still relying on the feature ample time to rid themselves of this dependency.~ cc https://github.com/rust-lang/rust/issues/29597 r? @Mark-Simulacrum
2019-10-03Rollup merge of #61879 - stjepang:stabilize-todo, r=withoutboatsTyler Mandry-7/+10
Stabilize todo macro The `todo!` macro is just another name for `unimplemented!`. Tracking issue: https://github.com/rust-lang/rust/issues/59277 This PR needs a FCP to merge. r? @withoutboats
2019-10-03Bless testDylan MacKenzie-1/+1
2019-10-04metadata: Remove unused `Option` from `fn dlsym_proc_macros`Vadim Petrochenkov-15/+12
2019-10-04metadata: Remove `CrateMetadata::name`Vadim Petrochenkov-11/+6
It duplicates `CrateRoot::name`
2019-10-04metadata: Remove `CrateMetadata::host_lib`Vadim Petrochenkov-9/+1
It was only used for retreiving edition, which was a bug. In case of dual proc macros the edition should be taken from the target crate version, like any other metadata.
2019-10-04metadata: Simplify interface of `resolve_crate`Vadim Petrochenkov-60/+46
2019-10-04metadata: Remove `locator::Context::ident`Vadim Petrochenkov-29/+24
It's a crate name after renaming, so it's entirely irrelevant to crate loading
2019-10-04metadata: Do not pass crate name after renaming to `register_crate`Vadim Petrochenkov-5/+3
It's entirely irrelevant to crate loading
2019-10-04metadata: Remove `CrateMetadata::imported_name`Vadim Petrochenkov-8/+1
It's entirely irrelevant to crate loading
2019-10-03Remove `borrowck_graphviz_postflow` from testDylan MacKenzie-1/+0
2019-10-03review commentsEsteban Küber-41/+81
2019-10-03review commentsEsteban Küber-20/+17
2019-10-03review commentsEsteban Küber-48/+70
2019-10-03Prove bad turbofish parser recovery in testEsteban Küber-11/+3
2019-10-03Account for missing turbofish in paths tooEsteban Küber-6/+46
2019-10-03review commentsEsteban Küber-38/+49
2019-10-03When encountering chained operators use heuristics to recover from bad turbofishEsteban Küber-27/+121
2019-10-03Regression tests.Felix S. Klock II-0/+116
Update: incorporate review feedback.
2019-10-03Auto merge of #64938 - estebank:ice-ice-baby, r=matthewjasperbors-2/+29
Avoid ICE on ReFree region on where clause Fix #64855.
2019-10-03Make visit_projection iterativeSantiago Pastorino-70/+76
2019-10-03typo: fix typo in E0392Ben Boeckel-22/+22
See #64931.
2019-10-03Auto merge of #64999 - nikomatsakis:issue-60424-async-return-inference, ↵bors-497/+763
r=cramertj extract expected return type for async fn generators Fixes #60424 cc @Centril, I know you've been eager to see this fixed. r? @cramertj
2019-10-03update ui testsGuillaume Gomez-1/+2
2019-10-03Add long error explanation for E0556Guillaume Gomez-1/+19
2019-10-03Allocate a new diagnostic for defaulted type parameters cannot use `Self`Felix S. Klock II-6/+40
(Without this commit, you still get an error (a very similar one, at that), but it complains about use of forward declaration, which is confusing since people do not necessarily think of `Self` as being declared at all.) Update: incorporate review feedback.
2019-10-03The crux of the bug fix.Felix S. Klock II-0/+13
Update: review feedback Update: placate tidy
2019-10-03generate ClosureSubsts from SubstsRefcsmoe-216/+139
2019-10-03add regression test for #60218Niko Matsakis-0/+34
2019-10-03Update issue-64655-extern-rust-must-allow-unwind.rsFelix S Klock II-1/+0
placate tidy
2019-10-03Update attributes.rsFelix S Klock II-4/+5
Some comment refinements inspired by review feedback.
2019-10-03Apply suggestions from code reviewFelix S Klock II-6/+6
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Ralf Jung <post@ralfj.de>
2019-10-03proc_macro: Add `Span::mixed_site` exposing `macro_rules` hygieneVadim Petrochenkov-35/+179
2019-10-03./x.py test --bless --compare-mode=nllNiko Matsakis-288/+258
2019-10-03Added doc about behavior of extend on HashMapMartin Habovštiak-0/+2
It was unclear what the implementation does when it encounters existing keys. This change makes it clear by documenting the trait impl.
2019-10-03--bless ui-fulldeps testsMazdak Farrokhzad-24/+210
2019-10-03Reorder methods of CellShotaro Yamada-46/+46
To make `new` method appear first in documentation.
2019-10-03Rollup merge of #65002 - alexcrichton:update-lvlm, r=nikicMazdak Farrokhzad-0/+0
Update llvm-project submodule Bring in rust-lang/llvm-project#24 which brings in some wasm improvements related to the bulk-memory proposal