about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-04-29Auto merge of #60182 - matklad:lexer-cleanup, r=petrochenkovbors-6/+4
Lexer cleanup another couple of tiny cleanups
2019-04-28Auto merge of #60317 - flip1995:internal_lints, r=oli-obkbors-170/+480
Internal lints: usage_of_qualified_ty & ty_pass_by_reference Closes #59952 Implements internal lints: - `USAGE_OF_QUALIFIED_TY` - `TY_PASS_BY_REFERENCE` r? @oli-obk
2019-04-28Remove unused TyCtxt argument from allow_two_phase_borrow functionflip1995-9/+6
2019-04-28Fix lint findings in librustdocflip1995-7/+7
2019-04-28Fix lint findings in librustc_mirflip1995-41/+41
2019-04-28Fix lint findings in librustc_traitsflip1995-32/+32
2019-04-28Fix lint findings in librustc_typeckflip1995-14/+14
2019-04-28Fix lint findings in librustc_metadataflip1995-5/+5
2019-04-28Fix lint findings in librustcflip1995-56/+56
2019-04-28Update *.stderr filesflip1995-1/+101
2019-04-28Add testsflip1995-0/+99
2019-04-28Implement internal lintsflip1995-12/+126
- USAGE_OF_QUALIFIED_TY - TY_PASS_BY_REFERENCE
2019-04-28Auto merge of #60352 - Centril:const-incomplete-features, r=oli-obkbors-6/+9
Float 'incomplete_features' out to a const for visibility Float `let incomplete_features` out to a `const INCOMPLETE_FEATURES` and colocate near `active` features so that it is easier to find and edit. r? @oli-obk (use rollup)
2019-04-28Float 'incomplete_features' out to a const for visibility.Mazdak Farrokhzad-6/+9
2019-04-28Auto merge of #60351 - Centril:rollup-5xv3tka, r=Centrilbors-18/+13
Rollup of 4 pull requests Successful merges: - #60022 (Document `Item` type in `std::env::SplitPaths` iterator.) - #60270 (rustc: Flag metadata compatible with multiple CGUs) - #60325 (Document ast::ExprKind::Type) - #60347 (Remove `-Z two-phase-borrows` and `-Z two-phase-beyond-autoref`) Failed merges: r? @ghost
2019-04-28Rollup merge of #60347 - JohnTitor:remove-flags, r=matthewjasperMazdak Farrokhzad-14/+3
Remove `-Z two-phase-borrows` and `-Z two-phase-beyond-autoref` fixes #60331
2019-04-28Rollup merge of #60325 - Centril:doc-ast-exprkind-type, r=oli-obkMazdak Farrokhzad-0/+1
Document ast::ExprKind::Type r? @oli-obk
2019-04-28Rollup merge of #60270 - alexcrichton:metadata-multi-cgu, r=oli-obkMazdak Farrokhzad-3/+2
rustc: Flag metadata compatible with multiple CGUs It looks like the `OutputType::Metadata` kind in the compiler was misclassified in #38571 long ago by accident as incompatible with codegen units and a single output file. This means that if you emit both a linkable artifact and metadata it silently turns off multiple codegen units unintentionally! This commit corrects the situation to ensure that if `--emit metadata` is used it doesn't implicitly disable multiple codegen units. This will ensure we don't accidentally regress compiler performance when striving to implement pipelined compilation!
2019-04-28Rollup merge of #60022 - nathankleyn:fix-issue-59543, r=CentrilMazdak Farrokhzad-1/+7
Document `Item` type in `std::env::SplitPaths` iterator. Previously there wasn't any documentation to show what the type of `Item` was inside `std::env::SplitPaths`. Now, in the same format as other examples of docs in `std` for `Iterator#Item`, we mention the type. This fixes #59543. r? @steveklabnik
2019-04-28Remove unnecessary functionYuki OKUSHI-7/+2
2019-04-28Auto merge of #60346 - dima74:patch-1, r=GuillaumeGomezbors-1/+1
Fix default value for setting "Auto-hide item methods' documentation" If I open any documentation page in incognito mode (for example [for `Option` enum](https://doc.rust-lang.org/nightly/std/option/enum.Option.html)), then methods will be collapsed, though [on the settings page](https://doc.rust-lang.org/nightly/settings.html) there will be displayed that "Auto-hide item methods' documentation" option is disabled. If I understand correctly, property "Auto-hide item methods' documentation" [should be disabled by default](https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/render.rs#L1969), so correct check would be `property === "true"`. This is consistent with other options: Options which are enabled by default are compared to `"false"` https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/render.rs#L1965-L1968 https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/static/main.js#L2238 https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/static/main.js#L2321 https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/static/main.js#L2070 Options which are disabled by default are compared to `"true"` https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/render.rs#L1970-L1972 https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/static/main.js#L1389 https://github.com/rust-lang/rust/blob/938d4ffe16c4430e1dcede570b06227114cb73d5/src/librustdoc/html/static/main.js#L2334
2019-04-28Remove two-phase-beyond-autorefYuki OKUSHI-5/+1
2019-04-28Remove two-phase-borrowsYuki OKUSHI-2/+0
2019-04-28Auto merge of #60333 - Centril:stabilize-iterator-copied, r=varkorbors-11/+9
Stabilize Iterator::copied in 1.36.0 Per https://github.com/rust-lang/rust/issues/57127#issuecomment-487289429. Closes https://github.com/rust-lang/rust/issues/57127. r? @varkor
2019-04-28Fix default value for setting "Auto-hide item methods' documentation"Dmitry Murzin-1/+1
2019-04-27Auto merge of #60313 - cuviper:thinlto-import, r=alexcrichtonbors-1/+4
Limit internalization in LLVM 8 ThinLTO Fixes #60184. r? @alexcrichton
2019-04-27Auto merge of #60288 - Zoxc:update-rayon, r=nikomatsakisbors-12/+35
Update rustc-rayon version r? @nikomatsakis
2019-04-27Stabilize Iterator::copied in 1.36.0.Mazdak Farrokhzad-11/+9
2019-04-27Auto merge of #60329 - Centril:rollup-wv8g1ex, r=Centrilbors-122/+210
Rollup of 5 pull requests Successful merges: - #60292 (Replace the `&'tcx List<Ty<'tcx>>` in `TyKind::Tuple` with `SubstsRef<'tcx>`) - #60307 (Make "Implementations on Foreign Types" items in sidebar link to specific impls) - #60309 (Add 1.34.1 release notes) - #60315 (bootstrap: use correct version numbers for llvm-tools and lldb) - #60316 (Use "capacity" as parameter name in with_capacity() methods) Failed merges: r? @ghost
2019-04-27Rollup merge of #60316 - mgeier:rename-capacity-parameter, r=joshtriplettMazdak Farrokhzad-16/+16
Use "capacity" as parameter name in with_capacity() methods See #60271. The only place where I didn't change the parameter name is `RawVec`. The problem is that it has a `.cap()` method instead of the usual `.capacity()`: https://github.com/rust-lang/rust/blob/597f432489f12a3f33419daa039ccef11a12c4fd/src/liballoc/raw_vec.rs#L200-L210 Changing this would be a breaking change, and I guess that's not worth it. But since I didn't change `.cap()` there, I didn't change the `cap` parameter name to `capacity`, either.
2019-04-27Rollup merge of #60315 - pietroalbini:fix-tools-version, r=Mark-SimulacrumMazdak Farrokhzad-2/+2
bootstrap: use correct version numbers for llvm-tools and lldb The current URLs for the `llvm-tools` and `lldb` components are a bit broken right now: ``` https://static.rust-lang.org/dist/2019-04-25/llvm-tools-1.34.1 (fc50f328b 2019-04-24)-aarch64-unknown-linux-gnu.tar.gz ``` This PR uses proper version numbers for those. Tested a dist build locally and everything works. r? @Mark-Simulacrum
2019-04-27Rollup merge of #60309 - pietroalbini:relnotes-1.34.1, r=pietroalbiniMazdak Farrokhzad-0/+11
Add 1.34.1 release notes This is a backport of the release notes from the 1.34.1 release. r? @ghost
2019-04-27Rollup merge of #60307 - dima74:fix/56018, r=GuillaumeGomezMazdak Farrokhzad-11/+35
Make "Implementations on Foreign Types" items in sidebar link to specific impls This solves #56018 for most cases (though not work for foreign impls with same names)
2019-04-27Rollup merge of #60292 - varkor:ty-tuple-substs, r=nikomatsakisMazdak Farrokhzad-93/+146
Replace the `&'tcx List<Ty<'tcx>>` in `TyKind::Tuple` with `SubstsRef<'tcx>` Part of the suggested refactoring for https://github.com/rust-lang/rust/issues/42340. As expected, this is a little messy, because there are many places that the components of tuples are expected to be types, rather than arbitrary kinds. However, it should open up the way for a refactoring of `TyS` itself. r? @nikomatsakis
2019-04-27Document ast::ExprKind::Type.Mazdak Farrokhzad-0/+1
2019-04-27Auto merge of #59887 - eddyb:safer-metadata, r=Zoxcbors-45/+80
rustc_metadata: more safely read/write the index positions. This is a small part of a larger refactor, that I want to benchmark independently. The final code would be even cleaner than this, so this is sort of an "worst case" test.
2019-04-27Auto merge of #59540 - Zoxc:the-arena-2, r=michaelwoeristerbors-89/+107
Use arenas to avoid Lrc in queries #1 Based on https://github.com/rust-lang/rust/pull/59536.
2019-04-26Auto merge of #60306 - RalfJung:xargo, r=alexcrichtonbors-0/+1
include rustc-std-workspace-alloc in rust-src This is needed to fix https://github.com/japaric/xargo/issues/240
2019-04-26Update handling of Tuplevarkor-90/+134
2019-04-26Replace `&'tcx List<Ty<'tcx>>` in `Tuple` with `SubstsRef<'tcx>`varkor-1/+1
2019-04-26Add expect_ty method to Kindvarkor-2/+11
2019-04-26Make "Implementations on Foreign Types" items in sidebar link to specific implsDmitry Murzin-11/+35
2019-04-26Update rustc-rayon versionJohn Kåre Alsaker-12/+35
2019-04-26Use "capacity" as parameter name in with_capacity() methodsMatthias Geier-16/+16
Closes #60271.
2019-04-26bootstrap: use correct version numbers for llvm-tools and lldbPietro Albini-2/+2
2019-04-26Limit internalization in LLVM 8 ThinLTOJosh Stone-1/+4
2019-04-26update release notes for 1.34.1Pietro Albini-0/+11
2019-04-26include rustc-std-workspace-alloc in rust-srcRalf Jung-0/+1
2019-04-26Auto merge of #60303 - CryZe:patch-6, r=Centrilbors-6/+2
Stabilize pointer::align_offset Closes #44488
2019-04-26Remove feature gates from std and testsChristopher Serr-2/+0