about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-06-06Update .mailmap with my nameLaurențiu Nicola-0/+1
2019-06-06[const-prop] Handle Rvalue::LenWesley Wiser-23/+46
2019-06-06[const-prop] Handle ProjectionElem::DerefWesley Wiser-0/+27
2019-06-06[const-prop] Handle Rvalue::RefWesley Wiser-1/+22
2019-06-06[const-prop] Fix ICE when casting function pointersWesley Wiser-6/+29
This fixes an ICE when building libcore with `-Z mir-opt-level=3`.
2019-06-06Auto merge of #61583 - Centril:rollup-ug2cbfd, r=Centrilbors-32/+36
Rollup of 4 pull requests Successful merges: - #61556 (librustc_errors: Rename AnnotateRs -> AnnotateSnippet) - #61557 (rustbuild: Include `rustfmt` in deduplicated dependencies) - #61571 (Escape HashMap with backticks in needs_drop docs) - #61582 (submodules: update clippy from 20da8f45 to 71be6f62) Failed merges: r? @ghost
2019-06-06Rollup merge of #61582 - matthiaskrgr:submodule_upd, r=oli-obkMazdak Farrokhzad-11/+7
submodules: update clippy from 20da8f45 to 71be6f62 Changes: ```` rustup https://github.com/rust-lang/rust/pull/57428/ Remove `to_string()`s from CompilerLintFunctions Fix comment grammar Fix .map(..).unwrap_or_else(..) bad suggestion add suggestions for print/write with newline lint ```` Fixes https://github.com/rust-lang/rust/issues/61578 r? @oli-obk
2019-06-06Rollup merge of #61571 - czipperz:needs_drop-doc-escape-HashMap, ↵Mazdak Farrokhzad-2/+2
r=Mark-Simulacrum Escape HashMap with backticks in needs_drop docs
2019-06-06Rollup merge of #61557 - alexcrichton:build-less, r=pietroalbiniMazdak Farrokhzad-1/+9
rustbuild: Include `rustfmt` in deduplicated dependencies Currently `rustfmt` is excluded from the "don't build dependencies twice" check but it's currently building dependencies twice! Namely big dependencies like `rustc-ap-syntax` are built once for rustfmt and once for the RLS. This commit includes `rustfmt` in these checks and then fixes the resulting feature mismatches for winapi.
2019-06-06Rollup merge of #61556 - phansch:emitter_cleanup, r=estebankMazdak Farrokhzad-18/+18
librustc_errors: Rename AnnotateRs -> AnnotateSnippet The proper name of the library is `annotate-snippet`, not `annotate-rs`, this PR should get rid of any confusing `AnnotateRs` names. 1. Renames `annotate_rs_emitter.rs` to `annotate_snippet_emitter_writer.rs` so that the difference between the `Emitter` trait and the implementers is more clear. 2. Renames `AnnotateRsEmitterWriter` to `AnnotateSnippetEmitterWriter` 3. Renames `HumanReadableErrorType::AnnotateRs` to `HumanReadableErrorType::AnnotateSnippet`
2019-06-06Address review commentsVadim Petrochenkov-16/+19
2019-06-06Some code cleanup and tidy/test fixesVadim Petrochenkov-101/+109
2019-06-06syntax: Use `Token` in visitors and fix a mut visitor testVadim Petrochenkov-17/+25
2019-06-06syntax: Switch function parameter order in `TokenTree::token`Vadim Petrochenkov-62/+63
2019-06-06syntax: Use `Token` in some more placesVadim Petrochenkov-6/+6
2019-06-06syntax: Remove duplicate span from `token::Ident`Vadim Petrochenkov-184/+181
2019-06-06syntax: Remove duplicate span from `token::Lifetime`Vadim Petrochenkov-36/+39
2019-06-06syntax: Add some helper methods to `Token`Vadim Petrochenkov-62/+64
2019-06-06syntax: Use `Token` in `Parser`Vadim Petrochenkov-126/+126
2019-06-06syntax: Use `Token` in `StringReader` and `TokenTreesReader`Vadim Petrochenkov-51/+37
2019-06-06syntax: Use `Token` in `TokenTree::Token`Vadim Petrochenkov-312/+327
2019-06-06syntax: Rename `TokenAndSpan` into `Token`Vadim Petrochenkov-122/+118
2019-06-06syntax: Rename `Token` into `TokenKind`Vadim Petrochenkov-119/+119
2019-06-06Always use token kinds through `token` module rather than `Token` typeVadim Petrochenkov-130/+130
2019-06-06submodules: update clippy from 20da8f45 to 71be6f62Matthias Krüger-11/+7
Changes: ```` rustup https://github.com/rust-lang/rust/pull/57428/ Remove `to_string()`s from CompilerLintFunctions Fix comment grammar Fix .map(..).unwrap_or_else(..) bad suggestion add suggestions for print/write with newline lint ````
2019-06-06Implement only visit_place_base for monomorphize/collectorSantiago Pastorino-12/+13
2019-06-06Make visit_place traverse place and have visit_place_base and ↵Santiago Pastorino-27/+31
visit_projection doing the real work
2019-06-06Auto merge of #61494 - Mark-Simulacrum:move-to-cfg-bootstrap, r=alexcrichtonbors-8/+12
Utilize cfg(bootstrap) over cfg(stage0) Also removes stage1, stage2 cfgs being passed to rustc to ensure that stage1 and stage2 are only differentiated as a group (i.e., only through not bootstrap). Fixes #53582 r? @alexcrichton
2019-06-06Auto merge of #61373 - tmandry:emit-storagedead-along-unwind, r=eddybbors-97/+247
Emit StorageDead along unwind paths for generators Completion of the work done in #60840. That PR made a change to implicitly consider a local `StorageDead` after Drop, but that was incorrect for DropAndReplace (see also #61060 which tried to fix this in a different way). This finally enables the optimization implemented in #60187. r? @eddyb cc @Zoxc @cramertj @RalfJung
2019-06-05Remove dereferenceChris Gregory-1/+1
Co-Authored-By: Steven Fackler <sfackler@gmail.com>
2019-06-05Take self by value (Self is Copy here)Chris Gregory-1/+1
2019-06-06Auto merge of #57428 - alexreg:associated_type_bounds, r=nikomatsakis,Centrilbors-1055/+4847
Implementation of RFC 2289 (associated_type_bounds) This PR implements the [`asociated_type_bounds` feature](https://github.com/rust-lang/rfcs/blob/master/text/2289-associated-type-bounds.md). Associated type bounds are implemented in: - function/method arguments and return types - structs, enums, unions - associated items in traits - type aliases - type parameter defaults - trait objects - let bindings CC @nikomatsakis @centril
2019-06-06Make LocalAnalizer visitor iterate instead of recurseSantiago Pastorino-37/+48
2019-06-06Make UnsafetyChecker visitor iterate instead of recurseSantiago Pastorino-40/+39
2019-06-06Reblessed tests with NLL compare mode on.Alexander Regueiro-4/+28
2019-06-05Escape needs_drop in the needs_drop documentationChris Gregory-1/+1
2019-06-05Escape HashMap with backticks in needs_drop docsChris Gregory-1/+1
2019-06-06Auto merge of #59331 - varkor:TypeVariableOrigin-refactor, r=eddybbors-99/+251
Refactor `TypeVariableOrigin` Removes some unused variants and extracts the common `Span` field. As suggested in https://github.com/rust-lang/rust/pull/59008#discussion_r265031209. r? @eddyb
2019-06-05Utilize cfg(bootstrap) over cfg(stage0)Mark Rousskov-8/+12
Also removes stage1, stage2 cfgs being passed to rustc to ensure that stage1 and stage2 are only differentiated as a group (i.e., only through not bootstrap).
2019-06-05Test StorageDead statements explicitlyTyler Mandry-0/+106
2019-06-05add an example to `create_substs_for_ast_path`Alexander Regueiro-0/+14
2019-06-05verified that skip-binder is okNiko Matsakis-2/+2
2019-06-05another commentNiko Matsakis-1/+7
2019-06-05more commentsNiko Matsakis-3/+31
2019-06-05comment `instantiate_poly_trait_ref` and its binder behaviorNiko Matsakis-0/+19
2019-06-05make `instantiate_poly_trait_ref_inner` private to this moduleNiko Matsakis-0/+0
2019-06-05document the `Bounds` struct a bitAlexander Regueiro-2/+37
2019-06-05added a few commentsNiko Matsakis-0/+5
2019-06-05Removed unnecessary nested-lifetime-bounds test.Alexander Regueiro-33/+0
2019-06-05Reblessed tests.Alexander Regueiro-676/+255