- 27 4月, 2015 10 次提交
-
-
由 Tshepang Lekhonkhobe 提交于
-
由 bors 提交于
Previous borrow() is enough to make borrow_mut() panic, no need to have borrow_mut() twice. [This](http://is.gd/woKKAW)
-
由 bors 提交于
I figure I'd start easy with fixing a simple documentation bug. This is also a test to see that I got everything right w r t the fork/pull request process.
-
由 bors 提交于
-
由 Corey Farwell 提交于
-
由 gareins 提交于
Previous borrow() is enough to make borrow_mut() panic, no need to have borrow_mut() twice. [This](http://is.gd/woKKAW)
-
由 bors 提交于
-
由 bors 提交于
-
由 diwic 提交于
-
由 bors 提交于
r? @alexcrichton
-
- 26 4月, 2015 23 次提交
-
-
由 bors 提交于
r? @alexcrichton
-
由 Corey Farwell 提交于
-
由 bors 提交于
Fixes #23433.
-
由 bors 提交于
This changes the `ToTokens` implementations for expressions, statements, etc. with almost-trivial ones that produce `Interpolated(*Nt(...))` pseudo-tokens. In this way, quasiquote now works the same way as macros do: already-parsed AST fragments are used as-is, not reparsed. The `ToSource` trait is removed. Quasiquote no longer involves pretty-printing at all, which removes the need for the `encode_with_hygiene` hack. All associated machinery is removed. New `Nonterminal`s are added: NtArm, NtImplItem, and NtTraitItem. These are just for quasiquote, not macros. `ToTokens` is no longer implemented for `Arg` (although this could be added again) and `Generics` (which I don't think makes sense). This breaks any compiler extensions that relied on the ability of `ToTokens` to turn AST fragments back into inspectable token trees. For this reason, this closes #16987. As such, this is a [breaking-change]. Fixes #16472. Fixes #15962. Fixes #17397. Fixes #16617.
-
由 bors 提交于
An actual typeck error is the cause of many failed compilations but an unrelated bug is being reported instead. It is triggered because a typeck error is presumably not yet identified during compiler execution, which would normally bypass an invariant in the presence of other errors. In this particular situation, we delay the reporting of the bug until abort_if_errors(). Closes #23827, closes #24356, closes #23041, closes #22897, closes #23966, closes #24013, and closes #23729 **There is at least one situation where this bug may still be genuinely triggered (#23437).**
-
由 Geoffry Song 提交于
Instead create an ExtCtxt structure.
-
由 bors 提交于
Transplant the relevant changes (turns out to be all of them) to `grammar.md`, and remove all grammar talk from `reference.md`. Sorry for the chaos. The second commit, further below, goes over the comments and whitespace sections. r? @steveklabnik
-
由 Geoffry Song 提交于
Such things no longer exist.
-
由 Geoffry Song 提交于
This changes the `ToTokens` implementations for expressions, statements, etc. with almost-trivial ones that produce `Interpolated(*Nt(...))` pseudo-tokens. In this way, quasiquote now works the same way as macros do: already-parsed AST fragments are used as-is, not reparsed. The `ToSource` trait is removed. Quasiquote no longer involves pretty-printing at all, which removes the need for the `encode_with_hygiene` hack. All associated machinery is removed. A new `Nonterminal` is added, NtArm, which the parser now interpolates. This is just for quasiquote, not macros (although it could be in the future). `ToTokens` is no longer implemented for `Arg` (although this could be added again) and `Generics` (which I don't think makes sense). This breaks any compiler extensions that relied on the ability of `ToTokens` to turn AST fragments back into inspectable token trees. For this reason, this closes #16987. As such, this is a [breaking-change]. Fixes #16472. Fixes #15962. Fixes #17397. Fixes #16617.
-
由 bors 提交于
At https://doc.rust-lang.org/book/vectors.html, there should be a link to Generics page but the link address is ommitted and thus link is not functioning well. So I added a link definition to the vectors.md. r? @steveklabnik
-
由 Robin Kruppe 提交于
-
由 bors 提交于
Sniped from @rprichard's work in #24537. r? @alexcrichton
-
由 Johannes Oertel 提交于
-
由 Johannes Oertel 提交于
-
由 bors 提交于
Closes #20616 It breaks code such as <https://github.com/rust-lang/rust/blob/c64feb63418fd05bd6e5adc6f9ad763aa6a594b1/src/librustc_typeck/check/method/suggest.rs#L367>, so this is a [breaking-change], you have to add missing comma after the last lifetime arguement now.
-
由 Tamir Duberstein 提交于
Re-enables the test.
-
由 Tamir Duberstein 提交于
Re-enables the test.
-
由 Tamir Duberstein 提交于
-
由 Tamir Duberstein 提交于
-
由 Robin Kruppe 提交于
Transplant the grammar-related changes to grammar.md, and remove all grammar talk from reference.md
-
由 bors 提交于
- Successful merges: #24649, #24806, #24809, #24811 - Manual merges: #24812
-
由 Heejong Ahn 提交于
At https://doc.rust-lang.org/book/vectors.html, there should be a link to Generics page but the link address is ommitted and thus link is not functioning well. So I added a link definition to the vectors.md. r? @steveklabnik
-
由 Manish Goregaokar 提交于
-
- 25 4月, 2015 7 次提交
-
-
由 Manish Goregaokar 提交于
Conflicts: src/doc/trpl/variable-bindings.md
-
由 Manish Goregaokar 提交于
Mention `non_ascii_idents` feature gate and remove unused productions. r? @steveklabnik
-
由 Manish Goregaokar 提交于
The reference has broken links. This should fix it.
-
由 Manish Goregaokar 提交于
-
由 Manish Goregaokar 提交于
-
由 Przemysław Wesołek 提交于
-
由 bors 提交于
The description of the syntax for single byte literals is missing the preceding `b` distinction.
-