- 26 1月, 2017 8 次提交
-
-
由 Niko Matsakis 提交于
The current setup processes impl/trait items while visiting the impl/trait. This means we basically have this setup: <Lots> -> TypeckItemBody(Impl) -> Tables(ImplItem{0,1,2,3}) But this was largely an artifact of the older code. By moving the processing of items into method dedicated for their use, we produce this setup: <Little> -> TypeckItemBody(ImplItem0) -> Tables(ImplItem0) ... <Little> -> TypeckItemBody(ImplItem3) -> Tables(ImplItem3)
-
由 bors 提交于
Rollup of 6 pull requests - Successful merges: #38930, #39212, #39251, #39267, #39276, #39278 - Failed merges:
-
由 Guillaume Gomez 提交于
fix book: refer to `add_two` as "tested function" refer to `add_two` as "tested function" rather than "test function", which would be `it_works`
-
由 Guillaume Gomez 提交于
Add missing urls for array docs r? @frewsxcv
-
由 Guillaume Gomez 提交于
doc comment rewording
-
由 Guillaume Gomez 提交于
Remove a FIXME in core/hash tests Removes a FIXME
-
由 Guillaume Gomez 提交于
Use libc errno in Redox submodule This fixes https://github.com/redox-os/redox/issues/830, and is necessary when using libc in Redox
-
由 Guillaume Gomez 提交于
Updates to src/libcore/ops.rs docs for RFC#1228 (Placement Left Arrow) Also fixed a minor typo in docs for `core::ops::Place`.
-
- 25 1月, 2017 11 次提交
-
-
由 bors 提交于
Update Fuchsia support for std::process. - Adds support for try_wait. - Miscellaneous updates to keep up with Magenta changes. I'll begin `sys/fuchsia` soon, just been bogged down with my actual job lately (I'm not on the Fuchsia team).
-
由 Nick Cameron 提交于
Catches generic types in paths
-
由 Nick Cameron 提交于
This is actually kinda hard to hit, but it fixes missing the `foo` in `for _ in foo {}`.
-
由 bors 提交于
exclusive range patterns adds `..` patterns to the language under a feature gate (`exclusive_range_pattern`). This allows turning ``` rust match i { 0...9 => {}, 10...19 => {}, 20...29 => {}, _ => {} } ``` into ``` rust match i { 0..10 => {}, 10..20 => {}, 20..30 => {}, _ => {} } ```
-
由 bors 提交于
rustbuild: Start building --enable-extended This commit adds a new flag to the configure script, `--enable-extended`, which is intended for specifying a desire to compile the full suite of Rust tools such as Cargo, the RLS, etc. This is also an indication that the build system should create combined installers such as the pkg/exe/msi artifacts. Currently the `--enable-extended` flag just indicates that combined installers should be built, and Cargo is itself not compiled just yet but rather only downloaded from its location. The intention here is to quickly get to feature parity with the current release process and then we can start improving it afterwards. All new files in this PR inside `src/etc/installer` are copied from the rust-packaging repository. cc #38531
-
由 Alex Crichton 提交于
This commit adds a new flag to the configure script, `--enable-extended`, which is intended for specifying a desire to compile the full suite of Rust tools such as Cargo, the RLS, etc. This is also an indication that the build system should create combined installers such as the pkg/exe/msi artifacts. Currently the `--enable-extended` flag just indicates that combined installers should be built, and Cargo is itself not compiled just yet but rather only downloaded from its location. The intention here is to quickly get to feature parity with the current release process and then we can start improving it afterwards. All new files in this PR inside `src/etc/installer` are copied from the rust-packaging repository.
-
由 Steve Klabnik 提交于
-
由 Raphael Das Gupta 提交于
rather than "test function", which would be `it_works`
-
由 Theodore DeRego 提交于
Updated Fuchsia support for std::process. Adds support for try_wait. Misc. updates to reflect changes in Magenta
-
由 Guillaume Gomez 提交于
- 24 1月, 2017 18 次提交
-
-
由 bors 提交于
Force backline on all where in docs Pictures are better than words in this case: Before: <img width="1440" alt="screen shot 2017-01-21 at 15 34 27" src="https://cloud.githubusercontent.com/assets/3050060/22175139/6e7c75d8-dfef-11e6-9904-023d63e609d2.png"> After: <img width="1440" alt="screen shot 2017-01-21 at 15 34 32" src="https://cloud.githubusercontent.com/assets/3050060/22175140/75cc3846-dfef-11e6-9799-fffb213653e4.png"> r? @steveklabnik cc @rust-lang/docs
-
由 bors 提交于
Fix multiple labels when some don't have message The diagnostic emitter now accounts for labels with no text message, presenting the underline on its own, without drawing the line for the non existing message below it. Go from ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ----^^^^^^^---- | | | | | `b` is a good letter | ``` to ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ----^^^^^^^---- | | | `b` is a good letter ``` from ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ^^^^-------^^^^ | | | | | | `a` is a good letter ``` to ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ^^^^-------^^^^ `a` is a good letter ``` and from ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ^^^^-------^^^^ | | | | | | ``` to ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ^^^^-------^^^^ ``` r? @nikomatsakis cc @jonathandturner, @GuillaumeGomez, @nrc
-
由 king6cong 提交于
-
由 bors 提交于
Refactor `TokenStream` r? @nrc
-
由 king6cong 提交于
-
由 bors 提交于
Add an option to the parser so cfg'ed out modules can still be parsed r? @jseyfried cc @dtolnay, @erickt it would be great if we could get this picked up into Syntex asap - it fixes a pretty nasty bug in Rustfmt.
-
由 bors 提交于
travis: Enable testing i686 musl This fixes the final issues with the target related to unwinding by disabling removal of frame pointers.
-
由 bors 提交于
impl ToSocketAddrs for String `ToSocketAddrs` is implemented for a number of different types, including `(IpAddr, u16)`, `&str`, and various others, for the convenience of being able to run things like `TcpListener::bind("10.11.12.13:1415")`. However, because this is a generic parameter with a trait bound, if you have a `String` you cannot pass it in, either directly as `TcpListener::bind(string)`, or the `TcpListener::bind(&string)` as you might expect due to deref coercion; you have to use `TcpListener::bind(&*string)`, which is noisy and hard to discover (though #39029 suggests better error messages to make it more discoverable). Rather than making people stumble over this, just implement `ToSocketAddrs` for `String`.
-
由 bors 提交于
Rollup of 7 pull requests - Successful merges: #38794, #38956, #38993, #39191, #39200, #39233, #39258 - Failed merges:
-
由 Steve Klabnik 提交于
build: Mention rustbuild in Makefile.in comments I think this patch will help newcomers like myself with the build system. I didn't understand that the make targets listed in the Makefile.in comments only worked with the old system, until it was pointed out to me in #39256.
-
由 Steve Klabnik 提交于
Add more references between lowercase/uppercase operations. None
-
由 Steve Klabnik 提交于
Docs for atomic orderings: link to the 'nomicon article for further reading
-
由 Steve Klabnik 提交于
book: size and align in trait object vtables are used The book currently claims that the `size` and `align` fields in the trait object vtable are not used, but this is false. These two fields are used by the stable `mem::size_of_val` and `mem::align_of_val` functions. See the `ty::TyDynamic` case of the `glue::size_and_align_of_dst` function in librustc_trans, which is used to implement both intrinsics in the unsized case. r? @steveklabnik
-
由 Steve Klabnik 提交于
Add `&mut expr` to syntax index
-
由 Steve Klabnik 提交于
Update struct_expr grammar for field init shorthand. Part of the work for #38830 . r? @steveklabnik
-
由 Steve Klabnik 提交于
book: match enum warning Matching enums with named fields in the previous way yielded the "non_shorthand_field_patterns" warning. The new code shows the shorthand syntax as well as field renaming, so it should be exhaustive ;-)
-
由 Nick Cameron 提交于
-
由 Jacob Wahlgren 提交于
-
- 23 1月, 2017 3 次提交
-
-
由 Jeffrey Seyfried 提交于
-
由 bors 提交于
Adding missing URL to release notes
-
由 Wesley Wiser 提交于
-