- 21 9月, 2018 1 次提交
-
-
由 Felix S. Klock II 提交于
-
- 01 11月, 2016 1 次提交
-
-
由 iirelu 提交于
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
-
- 13 6月, 2015 1 次提交
-
-
由 Steve Klabnik 提交于
It's now passing again. Fixes #20673
-
- 07 1月, 2015 1 次提交
-
-
由 Alex Crichton 提交于
-
- 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]
-
- 17 11月, 2014 1 次提交
-
-
由 Steven Fackler 提交于
This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [breaking-change]
-
- 28 5月, 2014 1 次提交
-
-
由 Richo Healey 提交于
[breaking-change]
-
- 25 5月, 2014 1 次提交
-
-
由 Richo Healey 提交于
[breaking-change]
-
- 15 5月, 2014 1 次提交
-
-
由 Patrick Walton 提交于
-
- 19 4月, 2014 1 次提交
-
-
由 Richo Healey 提交于
-
- 14 4月, 2014 1 次提交
-
-
由 Manish Goregaokar 提交于
-
- 21 3月, 2014 3 次提交
-
-
由 Huon Wilson 提交于
(And fix some tests.)
-
由 Patrick Walton 提交于
`~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
-
由 Patrick Walton 提交于
-
- 07 10月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
-
- 17 8月, 2013 1 次提交
-
-
由 Erick Tryzelaar 提交于
-
- 02 2月, 2013 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 19 12月, 2012 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 11 12月, 2012 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 31 10月, 2012 1 次提交
-
-
由 Tim Chevalier 提交于
-
- 24 8月, 2012 3 次提交
-
-
由 Paul Stansifer 提交于
-
由 Paul Stansifer 提交于
-
由 Paul Stansifer 提交于
-
- 11 8月, 2012 2 次提交