about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-07-18Don't call `local_def_id` twice on the same node idOliver Schneider-7/+9
2018-07-18Add test for using existential types in associated typesOliver Schneider-0/+36
2018-07-18Only check existential types, not the desugared impl TraitOliver Schneider-50/+58
2018-07-18Typeck existential types properlyOliver Schneider-9/+50
2018-07-18Implement existential typesOliver Schneider-117/+1385
2018-07-17Auto merge of #52404 - felixrabe:doc-link-ch19-04-typo, r=GuillaumeGomezbors-63/+63
Fix doc link Result of first searching via: find src -type f -exec fgrep -l dynamically-sized-types--sized {} \; and then replacing all relevant occurrences via: find src/{libcore,test/ui} -type f -exec sed -i.bak \ s/dynamically-sized-types--sized/dynamically-sized-types-and-sized/g {} \; find src -type f -name '*.bak' -exec rm {} \; (Note: Commands run on macOS 10.13 (BSD). `sed -i.bak` should work on GNU/Linux as well, but not tested.) EDIT: Did not compile / test Rust for this change at all. Clickable links for comparison: https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized (broken) https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (fixed)
2018-07-17Auto merge of #52433 - kennytm:rollup, r=kennytmbors-44/+114
Rollup of 9 pull requests Successful merges: - #52286 (Deny bare trait objects in src/librustc_errors) - #52306 (Reduce the number of clone()s needed in obligation_forest) - #52338 (update miri) - #52385 (Pass edition flags to compiler from rustdoc as expected) - #52392 (AsRef doc wording tweaks) - #52430 (update nomicon) - #52434 (Enable incremental independent of stage) - #52435 (Calculate the exact capacity for 2 HashMaps) - #52446 (Block beta if clippy breaks.) r? @ghost
2018-07-17Fix doc linkFelix Rabe-63/+63
The link for comparison: - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized (broken) - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (fixed) This commit is the result of (first) searching via: find src -type f -print0 | xargs -0 fgrep -l dynamically-sized-types--sized and then replacing all relevant occurrences via: find src/{libcore,test/ui} -type f -print0 | xargs -0 sed -i.bak \ s/dynamically-sized-types--sized/dynamically-sized-types-and-sized/g find src/{libcore,test/ui} -type f -name '*.bak' -print0 | xargs -0 rm (Note: Commands run on macOS 10.13 (BSD). `sed -i.bak` should work on GNU/Linux as well, but not tested.)
2018-07-17Auto merge of #52190 - davidtwco:issue-52028, r=nikomatsakisbors-121/+174
html5ever in the rustc-perf repository is memory-intensive Part of #52028. Rebased atop of #51987. r? @nikomatsakis
2018-07-17Rollup merge of #52385 - GuillaumeGomez:pass-edition-to-parser, ↵kennytm-1/+26
r=QuietMisdreavus Pass edition flags to compiler from rustdoc as expected Fixes #52357.
2018-07-17Rollup merge of #52446 - kennytm:block-beta-on-clippy, r=nrckennytm-7/+9
Block beta if clippy breaks. Also, don't fail master pull request when an unrelated tool is not test-pass.
2018-07-17Rollup merge of #52434 - Mark-Simulacrum:incremental-keep-stage, r=alexcrichtonkennytm-4/+1
Enable incremental independent of stage Previously we'd only do so for stage 0 but with keep-stage improvements it seems likely that we'll see more developers working in the stage 1, so we should allow enabling incremental for them.
2018-07-17Rollup merge of #52338 - RalfJung:miri, r=oli-obkkennytm-2511/+11927
update miri
2018-07-17Rollup merge of #52435 - ljedrz:misc_capacity, r=estebankkennytm-2/+3
Calculate the exact capacity for 2 HashMaps
2018-07-17Rollup merge of #52306 - ljedrz:obligation_forest_clone, r=varkorkennytm-3/+8
Reduce the number of clone()s needed in obligation_forest Some can be avoided by using `remove_entry` instead of `remove`.
2018-07-17Rollup merge of #52286 - ljedrz:dyn_librustc_errors, r=varkorkennytm-17/+20
Deny bare trait objects in src/librustc_errors Enforce `#![deny(bare_trait_objects)]` in `src/librustc_errors`.
2018-07-17Rollup merge of #52430 - RalfJung:nomicon, r=kennytmkennytm-0/+0
update nomicon Will this trigger a website update automatically or is that a separate step?
2018-07-17update miriRalf Jung-14/+14
2018-07-17update miri (Windows tests fixed)Ralf Jung-14/+14
2018-07-17update miriRalf Jung-7/+44
2018-07-17Auto merge of #52335 - nnethercote:BitSlice-fixes, r=nikomatsakisbors-44/+28
`BitSlice` fixes `propagate_bits_into_entry_set_for` and `BitSlice::bitwise` are hot for some benchmarks under NLL. I tried and failed to speed them up. (Increasing the size of `bit_slice::Word` from `usize` to `u128` caused a slowdown, even though decreasing the size of `bitvec::Word` from `u128` to `u64` also caused a slowdown. Weird.) Anyway, along the way I fixed up several problems in and around the `BitSlice` code. r? @nikomatsakis
2018-07-17Auto merge of #52409 - estebank:move-cfail-ui, r=oli-obkbors-17/+9577
Move some `compile-fail` tests to `ui` Re: #44844.
2018-07-16Generate region values directly to reduce memory usage.David Wood-121/+174
Also modify `SparseBitMatrix` so that it does not require knowing the dimensions in advance, but instead grows on demand.
2018-07-16Return tests that have platform dependant outputEsteban Küber-59/+0
2018-07-17Auto merge of #52285 - ljedrz:dyn_librustc_driver, r=nikomatsakisbors-51/+53
Deny bare trait objects in librustc_driver Enforce `#![deny(bare_trait_objects)]` in `src/librustc_driver`.
2018-07-16Update clippyManish Goregaokar-5/+8
Fixes test failures caused by https://github.com/rust-lang/rust/pull/52081
2018-07-17Block beta if clippy breaks.kennytm-7/+9
Don't fail master pull request when an unrelated tool is not test-pass.
2018-07-16Auto merge of #52081 - alexcrichton:proc-macro-stable, r=petrochenkovbors-515/+241
rustc: Stabilize the `proc_macro` feature This commit stabilizes some of the `proc_macro` language feature as well as a number of APIs in the `proc_macro` crate as [previously discussed][1]. This means that on stable Rust you can now define custom procedural macros which operate as attributes attached to items or `macro_rules!`-like bang-style invocations. This extends the suite of currently stable procedural macros, custom derives, with custom attributes and custom bang macros. Note though that despite the stabilization in this commit procedural macros are still not usable on stable Rust. To stabilize that we'll need to stabilize at least part of the `use_extern_macros` feature. Currently you can define a procedural macro attribute but you can't import it to call it! A summary of the changes made in this PR (as well as the various consequences) is: * The `proc_macro` language and library features are now stable. * Other APIs not stabilized in the `proc_macro` crate are now named under a different feature, such as `proc_macro_diagnostic` or `proc_macro_span`. * A few checks in resolution for `proc_macro` being enabled have switched over to `use_extern_macros` being enabled. This means that code using `#![feature(proc_macro)]` today will likely need to move to `#![feature(use_extern_macros)]`. It's intended that this PR, once landed, will be followed up with an attempt to stabilize a small slice of `use_extern_macros` just for procedural macros to make this feature 100% usable on stable. [1]: https://internals.rust-lang.org/t/help-stabilize-a-subset-of-macros-2-0/7252
2018-07-17Rollup merge of #52392 - heycam:patch-1, r=steveklabnikkennytm-3/+3
AsRef doc wording tweaks
2018-07-16Calculate the exact capacity for 2 HashMapsljedrz-2/+3
2018-07-16Enable incremental independent of stageMark Rousskov-4/+1
Previously we'd only do so for stage 0 but with keep-stage improvements it seems likely that we'll see more developers working in the stage 1, so we should allow enabling incremental for them. Ideally, the check we probably want is to only enable incremental for the last compiler build scheduled, but there's no good way to do so today. Just enabling incremental in all stages should be sufficient; we may be doing extra work that's needles -- compiling incrementally something that will never be recompiled in-place -- but that should be sufficiently unlikely (i.e., users either don't care or won't be compiling the compiler twice).
2018-07-16Rollup merge of #52285 - ljedrz:dyn_librustc_driver, r=nikomatsakiskennytm-51/+53
Deny bare trait objects in librustc_driver Enforce `#![deny(bare_trait_objects)]` in `src/librustc_driver`.
2018-07-16rustc: Stabilize much of the `proc_macro` featureAlex Crichton-515/+241
This commit stabilizes some of the `proc_macro` language feature as well as a number of APIs in the `proc_macro` crate as [previously discussed][1]. This means that on stable Rust you can now define custom procedural macros which operate as attributes attached to items or `macro_rules!`-like bang-style invocations. This extends the suite of currently stable procedural macros, custom derives, with custom attributes and custom bang macros. Note though that despite the stabilization in this commit procedural macros are still not usable on stable Rust. To stabilize that we'll need to stabilize at least part of the `use_extern_macros` feature. Currently you can define a procedural macro attribute but you can't import it to call it! A summary of the changes made in this PR (as well as the various consequences) is: * The `proc_macro` language and library features are now stable. * Other APIs not stabilized in the `proc_macro` crate are now named under a different feature, such as `proc_macro_diagnostic` or `proc_macro_span`. * A few checks in resolution for `proc_macro` being enabled have switched over to `use_extern_macros` being enabled. This means that code using `#![feature(proc_macro)]` today will likely need to move to `#![feature(use_extern_macros)]`. It's intended that this PR, once landed, will be followed up with an attempt to stabilize a small slice of `use_extern_macros` just for procedural macros to make this feature 100% usable on stable. [1]: https://internals.rust-lang.org/t/help-stabilize-a-subset-of-macros-2-0/7252
2018-07-16update nomiconRalf Jung-0/+0
2018-07-16Update the clippy submoduleOliver Schneider-5/+5
2018-07-16Update a debug stringOliver Schneider-1/+1
2018-07-16Fix tidycsmoe-42/+131
2018-07-16ItemKindcsmoe-696/+696
2018-07-16ForeignItemKindcsmoe-61/+60
2018-07-16TyKindcsmoe-142/+143
2018-07-16ExprKindcsmoe-667/+666
2018-07-16VariantKindcsmoe-11/+11
2018-07-16DeclKindcsmoe-37/+36
2018-07-16StmtKindcsmoe-63/+62
2018-07-16BinOpKindcsmoe-293/+297
2018-07-16Auto merge of #52422 - michaelwoerister:revert-52266, r=oli-obkbors-457/+171
Revert #52266 Reverts #52266 until the performance issues with that PR are ironed out.
2018-07-16Auto merge of #52395 - zackmdavis:and_the_case_of_the_renamed_lint, r=estebankbors-17/+27
structured suggestion for renamed-and-removed-lints ![lint_renamed](https://user-images.githubusercontent.com/1076988/42730470-f74688dc-87a9-11e8-8dfd-b3e1d70b0af8.png) r? @estebank
2018-07-16Revert "Provide a way of accessing the ThinLTO module import map in rustc."Michael Woerister-132/+1
This reverts commit 9df56ca0eea1a8f5af945df25ce23e276b1d48a7.
2018-07-16Revert "Persist ThinLTO import data in incr. comp. session directory."Michael Woerister-107/+4
This reverts commit 8dc7ddb9763f28b83de7bf3b3025f8042ea9e830.
2018-07-16Revert "Clean up CodegenUnit name generation."Michael Woerister-154/+57
This reverts commit 2c5cd9ce53d2d25041db0cb02b40ba460ffa8908.