- 06 1月, 2015 2 次提交
-
-
由 Keegan McAllister 提交于
-
由 Keegan McAllister 提交于
macro_rules! is like an item that defines a macro. Other items don't have a trailing semicolon, or use a paren-delimited body. If there's an argument for matching the invocation syntax, e.g. parentheses for an expr macro, then I think that applies more strongly to the *inner* delimiters on the LHS, wrapping the individual argument patterns.
-
- 19 12月, 2014 1 次提交
-
-
由 Patrick Walton 提交于
followed by a semicolon. This allows code like `vec![1i, 2, 3].len();` to work. This breaks code that uses macros as statements without putting semicolons after them, such as: fn main() { ... assert!(a == b) assert!(c == d) println(...); } It also breaks code that uses macros as items without semicolons: local_data_key!(foo) fn main() { println("hello world") } Add semicolons to fix this code. Those two examples can be fixed as follows: fn main() { ... assert!(a == b); assert!(c == d); println(...); } local_data_key!(foo); fn main() { println("hello world") } RFC #378. Closes #18635. [breaking-change]
-
- 27 9月, 2014 1 次提交
-
-
由 Keegan McAllister 提交于
This makes it easier to experiment with improved quasiquoting as an ordinary plugin library. The list of quote macros in feature_gate.rs was already out of sync; this commit also prevents that problem in the future.
-
- 30 7月, 2014 1 次提交
-
-
由 Luqman Aden 提交于
-
- 14 4月, 2014 1 次提交
-
-
由 Manish Goregaokar 提交于
-
- 17 1月, 2014 1 次提交
-
-
由 Steven Fackler 提交于
-
- 12 1月, 2014 1 次提交
-
-
由 SiegeLord 提交于
Specifically, dissallow setting the number base for every type of float literal, not only those that contain the decimal point. This is in line with the description in the manual.
-
- 11 1月, 2014 1 次提交
-
-
由 Raphael Catolino 提交于
-
- 06 1月, 2014 1 次提交
-
-
由 Alex Crichton 提交于
If the main closure failed, then the `exit_code` variable would still be `None`, and the `unwrap()` was failing (triggering a process abort). This changes the `unwrap()` to an `unwrap_or()` in order to prevent process abort and detect when the native task failed.
-
- 04 1月, 2014 1 次提交
-
-
由 Huon Wilson 提交于
If there is a lot of data in thread-local storage some implementations of pthreads (e.g. glibc) fail if you don't request a stack large enough -- by adjusting for the minimum size we guarantee that our stacks are always large enough. Issue #6233.
-
- 08 12月, 2013 1 次提交
-
-
由 Kiet Tran 提交于
-
- 06 10月, 2013 1 次提交
-
-
由 Tim Chevalier 提交于
Closes #7246 Closes #7573
-
- 25 9月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
This is required by the check-fast target because each test is slurped up into a submodule.
-
- 11 9月, 2013 1 次提交
-
-
由 John Clements 提交于
-
- 17 8月, 2013 1 次提交
-
-
由 Erick Tryzelaar 提交于
-
- 12 7月, 2013 1 次提交
-
-
由 Michael Sullivan 提交于
-
- 09 7月, 2013 2 次提交
-
-
由 John Barker 提交于
- also removed redundant assignment to is_mutbl - updated copyright
-
由 John Barker 提交于
-
- 11 12月, 2012 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 20 1月, 2012 2 次提交
-
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
- 16 1月, 2012 1 次提交
-
-
由 Kevin Atkinson 提交于
Remove disr_val from ast::variant_ and always use ty::variant_info when the value is needed. Move what was done during parsing into other passes, primary typeck.rs. This move also correctly type checks the disr. value expression; thus, fixing rustc --pretty=typed when disr. values are used.
-