Commit Graph

89227 Commits

Author SHA1 Message Date
kennytm a35dac2c5c
Rollup merge of #58128 - taiki-e:libunwind-2018, r=Centril
libunwind => 2018

Transitions `libunwind` to Rust 2018; cc #58099

r? @Centril
2019-02-06 00:29:05 +09:00
kennytm 3dbdd692cc
Rollup merge of #58117 - h-michael:rustdoc-theme-2018, r=Centril
Transition rustdoc-theme to 2018 edition

Transitions rustdoc-theme to Rust 2018; cc #58099
2019-02-06 00:29:03 +09:00
kennytm 757c4407db
Rollup merge of #58116 - topecongiro:wrong-span-assignment, r=petrochenkov
Include the span of attributes of the lhs to the span of the assignment expression

This PR adds the span of attributes of the lhs to the span of the assignment expression. Currently with the following code, `#[attr]` is not included to the span of the assignment (`foo = true`).

```rust
#[attr]
foo = true;
```
The rational behind this change is that as libsyntax user I expect the span of the parent node includes every span of child nodes.

cc https://github.com/rust-lang/rustfmt/issues/3313, https://github.com/rust-lang/rust/issues/15701.
2019-02-06 00:29:02 +09:00
kennytm 3f731d56b6
Rollup merge of #58114 - h-michael:tidy-unstable-book-gen-2018, r=Centril
Transition tidy and unstable-book-gen to 2018 edition

Transitions tidy and unstable-book-gen to Rust 2018; cc #58099
2019-02-06 00:29:00 +09:00
kennytm b9def8ee64
Rollup merge of #58113 - h-michael:build-manifest-2018, r=alexcrichton
Transition build-manifest to 2018 edition

#58099
2019-02-06 00:28:58 +09:00
kennytm c4af395cb1
Rollup merge of #58112 - Centril:libpanic_abort-2018, r=oli-obk
libpanic_abort => 2018

Transitions `libpanic_abort` to Rust 2018; cc #58099

r? @oli-obk
2019-02-06 00:28:57 +09:00
kennytm 49509a506c
Rollup merge of #58109 - Centril:librustc_privacy-2018, r=oli-obk
librustc_privacy => 2018

Transitions `librustc_privacy` to Rust 2018; cc #58099

r? @oli-obk
2019-02-06 00:28:56 +09:00
kennytm 18e5c7a370
Rollup merge of #58108 - denzp:nvptx-manifest, r=alexcrichton
Add NVPTX target to a build manifest

Include `nvptx64-nvidia-cuda` target to a build manifest. I forgot this step at my first take on adding the target (#57937).

Hopefully, this is the only reason why `rustup target add nvptx64-nvidia-cuda` doesn't work 🙁

r? @alexcrichton
2019-02-06 00:28:54 +09:00
kennytm ff7ab33027
Rollup merge of #58107 - Centril:libgraphviz-2018, r=oli-obk
libgraphviz => 2018

Transitions `libgraphviz` to Rust 2018; cc #58099

r? @oli-obk
2019-02-06 00:28:53 +09:00
kennytm 06c9fe9641
Rollup merge of #58106 - Centril:libfmt_macros-2018, r=oli-obk
libfmt_macros => 2018

Transitions `libfmt_macros` to Rust 2018; cc https://github.com/rust-lang/rust/issues/58099

r? @oli-obk
2019-02-06 00:28:52 +09:00
kennytm e1f4833f1a
Rollup merge of #58097 - h-michael:remote-test-2018, r=alexcrichton
Transition remote test to Rust 2018

Only updating Cargo.toml
2019-02-06 00:28:50 +09:00
kennytm da3a2fb980
Rollup merge of #58096 - h-michael:linkchecker-2018, r=Centril
Transition linkchecker to 2018 edition

Transition `src/tools/linkchecker` to Rust 2018.

#58099
2019-02-06 00:28:49 +09:00
kennytm a1ec22f6dd
Rollup merge of #58001 - pnkfelix:issue-57735-proc-macro-with-large-tokenstream-slow, r=eddyb
proc_macro: make `TokenStream::from_streams` pre-allocate its vector.

This requires a pre-pass over the input streams. But that is cheap compared to the quadratic blowup associated with reallocating the accumulating vector on-the-fly.

Fix #57735
2019-02-06 00:28:46 +09:00
bors b2c6b8c29f Auto merge of #57973 - davidtwco:issue-52891, r=estebank
Add suggestion for duplicated import.

Fixes #52891.

This PR adds a suggestion when a import is duplicated (ie. the same name
is used twice trying to import the same thing) to remove the second
import.
2019-02-05 05:14:15 +00:00
Hirokazu Hata 47a587fb2b Remove unncessary return statement 2019-02-05 10:59:18 +09:00
Hirokazu Hata 6904fac6d9 Use derive feature of serde 2019-02-05 10:51:47 +09:00
bors 710ddc151b Auto merge of #56291 - jamesmunns:upstream-embedded-book, r=steveklabnik
Initial addition of the Embedded Rust Book

This PR adds the Embedded Rust Book to the bookshelf as a submodule, and adds text for the bookshelf page. I have added a new section after "Master Rust" called "Specialize Rust", with the plan that future domain WG books can also reside here. This now extends the titles down to H3, where formerly only H1 and H2 were used.

The added submodule tracks the master branch of the Embedded WG repo.

If there are additional steps necessary to make this work in CI (perhaps adding this to `src/ci/docker/x86_64-gnu-tools/checktools.sh:32` or so?), please let me know.

CC @steveklabnik @japaric

Also CC issue https://github.com/rust-embedded/wg/issues/257
2019-02-05 01:40:13 +00:00
Hirokazu Hata 212533afbe Remove macro_use 2019-02-05 09:48:21 +09:00
Hirokazu Hata 5d9eed4191 Transition build-manifest to 2018 edition 2019-02-05 09:48:21 +09:00
James Munns 4633cca157 Update embedded book dependency 2019-02-04 11:34:50 +01:00
James Munns 606e5e07f6 Add embedded book 2019-02-04 05:20:43 -05:00
bors 8ae730a442 Auto merge of #58095 - h-michael:cargotest-2018, r=Centril
Transition cargotest to Rust 2018

Only updating Cargo.toml

#58099
2019-02-04 05:16:11 +00:00
bors 4314dbaa76 Auto merge of #58090 - ljedrz:HirIdification_phase_2, r=Zoxc
HirIdification: add key HirId methods

This is another PR in a series dedicated to `HirId`-ification, i.e. deprecating `ast::NodeId`s after the AST > HIR lowering process. The bigger proof of concept can be seen in #57578.

**Phase 2**: add key `HirId` methods mirroring the `NodeId` ones.

These should be counterparts of the most widely used `Hir` methods using `NodeId`s. Note that this expands `hir::map::Definitions` with an additional `hir_to_def_index` map (with the intention of later removing `node_to_def_index`).

As a bonus there is also a small cleanup commit removing unnecessary calls to `node_to_hir_id` where `HirId` is already available.

r? @Zoxc
Cc @varkor
2019-02-04 01:06:25 +00:00
ljedrz 272f4dfff6 hir: remove Definitions::hir_to_def_index 2019-02-03 22:27:52 +01:00
bors f6fac4225f Auto merge of #58024 - h-michael:update-rls, r=Xanewok
submodule: update rls from c9d25b to f331ff7

Update rls https://github.com/rust-lang/rls/compare/c9d25b667a...e2145d

https://github.com/rust-lang/rls/pull/1276 - h-michael:clippy, r=Xanewok
https://github.com/rust-lang/rls/pull/1269 - rust-lang:dependabot/cargo/rand-0.6.5, r=Xanewok
Remove extra backticks in contributing.md
https://github.com/rust-lang/rls/pull/1267 from h-michael/contributingmd
https://github.com/rust-lang/rls/pull/1268 from matthiaskrgr/rustup
https://github.com/rust-lang/rls/pull/1262 from rust-lang/dependabot/cargo/tokio-0.1.15
https://github.com/rust-lang/rls/pull/1264 - h-michael:pub-crate, r=alexheretic
https://github.com/rust-lang/rls/pull/1261 - rust-lang:dependabot/cargo/tokio-timer-0.2.9, r=Xanewok
https://github.com/rust-lang/rls/pull/1263 - Xanewok:update-clippy, r=Xanewok
https://github.com/rust-lang/rls/pull/1257 from Xanewok/architecture
https://github.com/rust-lang/rls/pull/1258 - rust-lang:dependabot/cargo/lsp-types-0.55.1, r=Xanewok
https://github.com/rust-lang/rls/pull/1255 - Xanewok:you-only-complete-once-fool, r=Xanewok
https://github.com/rust-lang/rls/pull/1252 - rust-lang:dependabot/cargo/cargo_metadata-0.7.0, r=alexheretic
https://github.com/rust-lang/rls/pull/1253 - rust-lang:dependabot/cargo/lsp-types-0.55.0, r=Xanewok
https://github.com/rust-lang/rls/pull/1254 - rust-lang:dependabot/cargo/serde_json-1.0.37, r=Xanewok
dependabot: Explicitly list default allowed_updates
dependabot: Add automerge strategy for clippy_lints
https://github.com/rust-lang/rls/pull/1251 - Xanewok:translate-deglob-test, r=Xanewok
https://github.com/rust-lang/rls/pull/1250 from alexheretic/master
https://github.com/rust-lang/rls/pull/1244 - Xanewok:translate-tests, r=alexheretic
https://github.com/rust-lang/rls/pull/1247 - alexheretic:register-more-clippy, r=Xanewok
https://github.com/rust-lang/rls/pull/1230 - emilio:testing-testing, r=Xanewok
https://github.com/rust-lang/rls/pull/1246 from alexheretic/did-save-manifest
Merge branch 'beta-version-bump' of https://github.com/rust-lang-nursery/rls
2019-02-03 21:19:38 +00:00
Taiki Endo 5440149229 libunwind => 2018 2019-02-04 06:00:16 +09:00
ljedrz e8aeb83a4a hir: add HirId methods 2019-02-03 20:37:04 +01:00
bors 4f4f4a40b6 Auto merge of #58081 - Centril:liballoc-2018, r=oli-obk
Transition liballoc to Rust 2018

This transitions liballoc to Rust 2018 edition and applies relevant idiom lints.
I also did a small bit of drive-by cleanup along the way.

r? @oli-obk

I started with liballoc since it seemed easiest. In particular, adding `edition = "2018"` to libcore gave me way too many errors due to stdsimd. Ideally we should be able to continue this crate-by-crate until all crates use 2018.
2019-02-03 18:40:23 +00:00
bors e858c2637f Auto merge of #58093 - h-michael:clippy, r=Xanewok
submodule: update clippy from 6ce78d1 to 3bda548

6ce78d1...3bda548

Rustup: unused trim result
Auto merge of #3727 - phansch:rustup_unused_trim, r=matthiaskrgr  …
Travis: Don't run integration tests on every PR commit  …
Auto merge of #3726 - phansch:some_renaming, r=oli-obk  …
Fix ICE in vec_box lint and add run-rustfix  …
Make vec_box MachineApplicable
Remove conditionals from base builds  …
Adding lint for too many lines.
Updating number of lines for the failing test to be > 100.  …
Running util/dev to update README/CHANGELOG
Reworking function logic, and adding doc example.  …
Moving tests to ui-toml to make use of clippy.toml
rustfmt
Adding back tests, but also reducing threshold by 1
Updating to just warn for one test.
Fix test broken by removing comment.
Skipping check if in external macro.
Adding lint for too many lines.
Updating number of lines for the failing test to be > 100.  …
Moving tests to ui-toml to make use of clippy.toml
rustfmt
Adding back tests, but also reducing threshold by 1
Updating to just warn for one test.
Fix test broken by removing comment.
Changing single character string to a character match.
Updated readme.
Updating code to ignore rustfmt issue.
phansch and avborhanian
Update clippy_lints/src/types.rs  …
Update clippy_lints/src/types.rs  …
Auto merge of #3732 - phansch:fix_ice_3720, r=oli-obk  …
Auto merge of #3731 - phansch:travis, r=phansch  …
Auto merge of #2857 - avborhanian:master, r=phansch  …
Fix breakage due to rust-lang/rust#58079  …
Auto merge of #3736 - mikerite:fix-build-20190203, r=phansch  …

related with: #58024
2019-02-03 16:06:55 +00:00
Hirokazu Hata d11d1afa64 Transition rustdoc-theme to 2018 edition 2019-02-04 00:45:42 +09:00
topecongiro 9851a29688 Add the span of attributes of the lhs to the span of the assignment expression 2019-02-04 00:35:12 +09:00
Hirokazu Hata b5ca255cd4 Transition tidy and unstable-book-gento 2018 edition 2019-02-04 00:34:55 +09:00
Mazdak Farrokhzad 582bbcc161 librustc_privacy => 2018 2019-02-03 15:56:35 +01:00
Mazdak Farrokhzad 09275b5cb5 libpanic_abort => 2018 2019-02-03 15:48:25 +01:00
Denys Zariaiev 46c2c274f2 Add NVPTX target into `build-manifest` 2019-02-03 15:47:15 +01:00
Mazdak Farrokhzad 7f41ed62e5 libgraphviz => 2018 2019-02-03 15:38:39 +01:00
Mazdak Farrokhzad 39394c8126 libfmt_macros => 2018 2019-02-03 15:33:01 +01:00
Hirokazu Hata 3a133f2088 Transition linkchecker to 2018 edition 2019-02-03 22:46:37 +09:00
Hirokazu Hata 9f34d4b357 Use 2018 edition for cargotest 2019-02-03 22:45:52 +09:00
bors 42b8c77da5 Auto merge of #57922 - davidtwco:issue-57410, r=petrochenkov
Update visibility of intermediate use items.

Fixes #57410 and fixes #53925 and fixes #47816.

Currently, the target of a use statement will be updated with
the visibility of the use statement itself (if the use statement was
visible).

This PR ensures that if the path to the target item is via another
use statement then that intermediate use statement will also have the
visibility updated like the target. This silences incorrect
`unreachable_pub` lints with inactionable suggestions.
2019-02-03 13:35:15 +00:00
Hirokazu Hata d17b2ec0e3 Transition remote-test-server to 2018 edition 2019-02-03 21:44:21 +09:00
Hirokazu Hata f832a809bb Transition remote-test-client to 2018 edition 2019-02-03 21:43:09 +09:00
Hirokazu Hata 73c39bbcd0 submodule: update clippy from 6ce78d1 to 3bda548 2019-02-03 18:41:09 +09:00
bors fc6e9a2845 Auto merge of #58062 - SimonSapin:iter_from_fn, r=alexcrichton
Rename iter::unfold to iter::from_fn and remove explicit state

This API is unstable.

CC https://github.com/rust-lang/rust/issues/55977#issuecomment-459657195
2019-02-03 08:48:35 +00:00
ljedrz 28fec683f5 cleanup: don't use node_to_hir_id where unneeded 2019-02-03 08:51:50 +01:00
Mazdak Farrokhzad 2396780cda liballoc: revert nested imports style changes. 2019-02-03 08:27:44 +01:00
bors 2966fbc10d Auto merge of #58043 - jethrogb:jb/sgx-usercallnrs, r=joshtriplett
Fix `std::os::fortanix_sgx::usercalls::raw::UsercallNrs`

It was 0-indexed but should be 1-indexed. This PR just removes the duplicate code and re-exports the internal enum.

Fixes https://github.com/fortanix/rust-sgx/issues/88

r? @joshtriplett
2019-02-03 04:57:30 +00:00
Mazdak Farrokhzad 285106a40e liballoc: alloc-extern-crates test needs --edition=2018 2019-02-03 04:37:50 +01:00
Hirokazu Hata 6e72077b3b submodule: update rls from c9d25b667a to f331ff7 2019-02-03 09:48:18 +09:00
bors ec7ecb3076 Auto merge of #58079 - ljedrz:HirIdification_phase_1, r=Zoxc
hir: add HirId to main Hir nodes

This is the 1st PR in a series dedicated to `HirId`-ification, i.e. deprecating `ast::NodeId`s after the AST > HIR lowering process. The bigger proof of concept can be seen in https://github.com/rust-lang/rust/pull/57578.

**Phase 1**: store `HirId` in all remaining (some already have it) main HIR nodes (excluding `*Id` objects).

- [x] `Field`
- [x] `FieldPat`
- [x] `ForeignItem`
- [x] `GenericParam`
- [x] `Lifetime`
- [x] `MacroDef`
- [x] `PathSegment`
- [x] `PatKind::Binding`
- [x] `Stmt`
- [x] `StructField`
- [x] `TypeBinding`
- [x] `VariantData`
- [x] `WhereClause`
- [x] `WhereEqPredicate`

r? @Zoxc
Cc @varkor
2019-02-03 00:24:25 +00:00