Matthias Einwag
363e992b98
review suggestions
2019-02-05 01:30:00 -08:00
Matthias Einwag
e1ec81459d
Apply more review suggestions
2019-02-05 01:14:09 -08:00
Pietro Albini
2bfb4b336f
add even more debugging code to track down appveyor 259 exit code
2019-02-05 08:47:52 +01: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
Nicholas Nethercote
970b5d189a
Various improvements in Folder
impls.
2019-02-05 15:18:29 +11:00
Nicholas Nethercote
372fe84a83
Streamline Folder
some more.
...
By eliminating some unnecessary methods, and moving/renaming some
functions that look like they might be methods but aren't.
2019-02-05 15:13:12 +11:00
Nicholas Nethercote
473095345b
Neaten up fold_crate
.
2019-02-05 15:12:15 +11:00
Nicholas Nethercote
8909f70a32
Change fold_qpath
to fold_qself
.
...
It's simpler that way.
2019-02-05 15:11:52 +11:00
Nicholas Nethercote
f97e896fd6
Simplify fold_attribute
.
...
It doesn't need to return an `Option`.
2019-02-05 15:11:27 +11:00
Nicholas Nethercote
eea2dfe76f
Fold some overlooked spans.
2019-02-05 15:11:10 +11:00
Nicholas Nethercote
faa82eb46c
Streamline Folder
.
...
Specifically:
- Remove dead methods: fold_usize, fold_meta_items, fold_opt_bounds.
- Remove useless methods: fold_global_asm, fold_range_end.
- Inline and remove unnecessary methods: fold_item_simple,
fold_foreign_item_simple.
2019-02-05 15:10:04 +11:00
Nicholas Nethercote
b9686416c6
Remove some unnecessary ast::
and fold::
qualifiers.
2019-02-05 15:09:23 +11: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
garyemerson
75b19579fb
update split docs
...
Some confusion about split popped up at https://news.ycombinator.com/item?id=19080931 since the docs sorta sound like `&str`, `char` and closures are the only types that can be patterns.
cc @steveklabnik
2019-02-04 15:26:33 -08:00
Melody Horn
57c4c2863d
Update contributor name in .mailmap
2019-02-04 14:43:30 -07:00
Pietro Albini
59ea75b51c
add more debugging code to track down appveyor 259 exit code
2019-02-04 19:29:45 +01:00
Hirokazu Hata
bd4df0c6dd
Add Cargo.lock automatically adding message
2019-02-05 01:31:48 +09:00
Hirokazu Hata
4ca3c7b156
update rust-installer from 27dec6c to ccdc47b
2019-02-05 01:21:07 +09:00
Guillaume Gomez
d0f88c4da3
Prevent automatic collapse of methods impl blocks
2019-02-04 14:59:06 +01:00
ljedrz
927614ff3e
hir: more HirId methods
2019-02-04 14:58:19 +01:00
Taiki Endo
4847c097b4
Add #[must_use] to core::task::Poll
2019-02-04 22:41:39 +09:00
Taiki Endo
94f121ff3f
libsyntax_ext => 2018
2019-02-04 21:49:54 +09:00
Guillaume Gomez
c40fa3271a
sort elements in the sidebar
2019-02-04 12:38:26 +01:00
James Munns
4633cca157
Update embedded book dependency
2019-02-04 11:34:50 +01:00
Jethro Beekman
82df9d7434
Remove stray FIXME
2019-02-04 16:02:54 +05:30
ishitatsuyuki
652f2c753a
Add test
2019-02-04 19:26:46 +09:00
lukaslueg
e3bbd67110
Remove weasel word in docs for iter's take_while()
...
The phrase "... or some similar thing." is very vague and contributes nothing to understanding the example. Simply removed.
2019-02-04 11:21:39 +01:00
James Munns
606e5e07f6
Add embedded book
2019-02-04 05:20:43 -05:00
Ralf Jung
789b4d1a4f
typos
2019-02-04 11:11:39 +01:00
Tatsuyuki Ishi
526a398c77
Fix #58101
2019-02-04 18:12:21 +09:00
Austin Bonander
27c8dfddac
Improve error message and docs for non-UTF-8 bytes in stdio on Windows
...
cc #23344
2019-02-03 22:55:56 -08:00
Philipp Hansch
fab032a01d
Transition compiletest to Rust 2018
2019-02-04 06:49:11 +01: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
Hirokazu Hata
3c6787306d
Excute rustfmt for fixing tidy check
2019-02-04 08:22:30 +09:00
Hirokazu Hata
4ae8abab93
Transition libtest to 2018 edition
2019-02-04 08:15:42 +09:00
Matthias Einwag
f005e1c5d7
Fix test
2019-02-03 14:59:22 -08:00
Matthias Einwag
9e6bc3c438
Apply review suggestions and fix tests
2019-02-03 13:46:53 -08:00
Mazdak Farrokhzad
01a704cf36
Apply suggestions from code review
...
Co-Authored-By: Matthias247 <matthias.einwag@live.com>
2019-02-03 13:46:53 -08:00
Matthias Einwag
d9a4b22d32
Update the future/task API
...
This change updates the future and task API as discussed in the stabilization RFC at https://github.com/rust-lang/rfcs/pull/2592 .
Changes:
- Replacing UnsafeWake with RawWaker and RawWakerVtable
- Removal of LocalWaker
- Removal of Arc-based Wake trait
2019-02-03 13:46:53 -08: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
Ralf Jung
f8c7d8dc8e
make set return a mutable reference
2019-02-03 22:14:14 +01:00
Ralf Jung
760424af17
expand as_[mut_]ptr docs a bit
2019-02-03 22:11:28 +01:00
Ralf Jung
9a460aac37
some type-level docs for MaybeUninit; rename into_inner -> into_initialized
2019-02-03 22:10:39 +01:00
Taiki Endo
5440149229
libunwind => 2018
2019-02-04 06:00:16 +09:00