summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2019-09-13Support "soft" feature-gating using a lintVadim Petrochenkov-7/+25
Use it for feature-gating `#[bench]`
2019-08-12Rollup merge of #62108 - Zoxc:sharded-queries, r=oli-obkMazdak Farrokhzad-26/+28
Use sharded maps for queries Based on https://github.com/rust-lang/rust/pull/61779. r? @Gankro
2019-08-11Rollup merge of #63464 - Mark-Simulacrum:deref-instance, r=eddybMark Rousskov-2/+2
Copy ty::Instance instead of passing by reference ty::Instance is small and Copy, we should not be adding additional indirection. Fixes #63409. r? @eddyb
2019-08-11Rollup merge of #63441 - bjorn3:patch-1, r=Mark-SimulacrumMark Rousskov-2/+2
Derive Debug for CrateInfo
2019-08-11Rollup merge of #63440 - RalfJung:ctfe-backtrace, r=oli-obkMark Rousskov-1/+1
rename RUST_CTFE_BACKTRACE to RUSTC_CTFE_BACKTRACE This matches `RUSTC_LOG`. Both affect only rustc, not any Rust program.
2019-08-11Rollup merge of #63346 - RalfJung:zeroed-lint, r=eddybMark Rousskov-10/+23
Lint on some incorrect uses of mem::zeroed / mem::uninitialized Cc https://github.com/rust-lang/rust/issues/62825 and https://internals.rust-lang.org/t/make-mem-uninitialized-and-mem-zeroed-panic-for-some-types-where-0-is-a-niche/10605 This does not yet handle `NonNull`/`NonZero*`, but it is a start. I also improved some doc issues I hit on the way, and added a useful helper to `TyS`. EDIT: I added the relnotes label mostly as a proposal -- I think this is worth mentioning, but leave the decision up to the release team.
2019-08-11Copy ty::Instance instead of passing by referenceMark Rousskov-2/+2
ty::Instance is small and Copy, we should not be adding additional indirection.
2019-08-11Derive Debug for NativeLibrary and NativeLibraryKindbjorn3-2/+2
2019-08-11Auto merge of #63446 - Centril:refactor-lowering, r=oli-obkbors-2780/+2912
Refactor and categorize lowering wrt. items / exprs Split lowering into more files along the lines of "expression related" and "item related". Also refactor huge methods into smaller ones. A next step might be to introduce "type related" and merge patterns and statements combined with expressions into "value related". There's still more work to do but the PR was getting too big :) r? @oli-obk
2019-08-11proper doc comment for 'recovered' field of variantRalf Jung-2/+2
Curtesy of petrochenkov
2019-08-11note a FIXMERalf Jung-0/+1
2019-08-11add tuple_fields convenience method and use it in a few placesRalf Jung-8/+20
2019-08-11fix a commentRalf Jung-1/+1
2019-08-10diagnostics: Describe crate root modules in `DefKind::Mod` as "crate"Vadim Petrochenkov-3/+5
2019-08-10lowering: move lower_arg -> item.rsMazdak Farrokhzad-9/+9
2019-08-10lowering: move scope & capture_clause stuff -> expr.rsMazdak Farrokhzad-66/+66
2019-08-10lowering: refactor into item.rsMazdak Farrokhzad-1417/+1444
2019-08-10lowering: move {lower_arm,arm} -> expr.rsMazdak Farrokhzad-25/+29
2019-08-10lowering: move field -> expr.rsMazdak Farrokhzad-10/+10
2019-08-10lowering: refactor label/dest -> expr.rsMazdak Farrokhzad-47/+43
2019-08-10lowering: move lower_{unop,binop} -> expr.rsMazdak Farrokhzad-34/+34
2019-08-10lowering: move lower_field -> expr.rsMazdak Farrokhzad-10/+10
2019-08-10lowering: move expr builder methods -> expr.rsMazdak Farrokhzad-175/+182
2019-08-10lowering: move make_async_expr -> expr.rsMazdak Farrokhzad-41/+56
2019-08-10lowering: extract lower_expr_letMazdak Farrokhzad-34/+45
2019-08-10lowering: extract lower_expr_ifMazdak Farrokhzad-40/+53
2019-08-10lowering: extract lower_expr_while_in_loop_scopeMazdak Farrokhzad-73/+86
2019-08-10lowering: move wrap_in_try_constructor -> expr.rsMazdak Farrokhzad-12/+11
2019-08-10lowering: extract lower_expr_try_blockMazdak Farrokhzad-25/+18
2019-08-10lowering: move lower_await -> expr.rsMazdak Farrokhzad-163/+160
2019-08-10lowering: extract lower_expr_closureMazdak Farrokhzad-36/+39
2019-08-10lowering: extract lower_expr_async_closureMazdak Farrokhzad-49/+67
2019-08-10lowering: extract lower_expr_range_closedMazdak Farrokhzad-11/+15
2019-08-10lowering: extract lower_expr_rangeMazdak Farrokhzad-39/+44
2019-08-10lowering: extract lower_expr_asmMazdak Farrokhzad-30/+35
2019-08-10lowering: extract lower_expr_yieldMazdak Farrokhzad-22/+24
2019-08-10lowering: extract lower_expr_forMazdak Farrokhzad-153/+163
2019-08-10lowering: extract lower_expr_tryMazdak Farrokhzad-110/+105
2019-08-10lowering: move lower_expr -> expr.rsMazdak Farrokhzad-800/+815
2019-08-10rename RUST_CTFE_BACKTRACE to RUSTC_CTFE_BACKTRACERalf Jung-1/+1
2019-08-10Rollup merge of #63432 - Centril:simplify-lowering, r=eddybMazdak Farrokhzad-43/+34
Cleanup & Simplify stuff in lowering Closes https://github.com/rust-lang/rust/issues/60253 as a byproduct. It turns out that it is in fact necessary to have a `DropTemps(...)` around the `match_expr` and there is a test (https://github.com/rust-lang/rust/blob/master/src/test/ui/issues/issue-13304.rs) which fails without that. r? @eddyb
2019-08-10Cleanup & Simplify stuff in lowering.Mazdak Farrokhzad-43/+34
2019-08-10Fix calls to resolver from rustdoc and HIR loweringVadim Petrochenkov-11/+4
Cleanup some surrounding code. Support resolution of intra doc links in unnamed block scopes. (Paths from rustdoc now use early resolution and no longer need results of late resolution like all the built ribs.) Fix one test hitting file path limits on Windows.
2019-08-10Rollup merge of #63350 - iluuu1994:use-associated-type-bounds, r=CentrilMazdak Farrokhzad-12/+10
Use associated_type_bounds where applicable - closes #61738
2019-08-09Differentiate between tuple structs and tuple variantsEsteban Küber-1/+1
2019-08-09Be more accurate when mentioning type of found match armsEsteban Küber-28/+10
2019-08-08Use associated_type_bounds where applicable - closes #61738Ilija Tovilo-12/+10
2019-08-08Rollup merge of #63360 - brson:cz-help, r=Mark-SimulacrumMazdak Farrokhzad-6/+6
Use consistent capitalization in -C/-Z help This code could also use a pass to consistify the grammar, but not by me atm.
2019-08-07Auto merge of #62457 - ↵bors-4/+21
zackmdavis:minimax_search_and_the_structure_of_cognition, r=varkor pretty-pretty extremal constants! (A resurrection of the defunct #57073.) While many programmers may intuitively appreciate the significance of "magic numbers" like −2147483648, Rust is about empowering everyone to build reliable and efficient software! It's a bit more legible to print the constant names (even noisy fully-qualified-paths thereof). The bit-manipulation methods mirror those in `librustc_mir::hair::pattern::_match::all_constructors`; thanks to the immortal Varkor for guidance. Resolves #56393. r? @varkor
2019-08-07Use consistent capitalization in -C/-Z helpBrian Anderson-6/+6