- 26 8月, 2011 3 次提交
-
-
由 Tim Chevalier 提交于
This patch supports the syntax unchecked { ... } to disable purity checking within a block. Presumably it will only be used within a declared "pure fn". However, there is no checking that it doesn't occur elsewhere, and it would be harmless for it to do so. I went with Lindsey's suggestion for the syntax, but it's subject to change. This allows you to write code that uses predicates that call arbitrary Rust functions, but you must declare your intentions by wrapping it in an unchecked { ... } block. The test case run-pass/unchecked-predicates.rs demonstrates how to do that.
-
由 Tim Chevalier 提交于
-
由 Brian Anderson 提交于
-
- 23 8月, 2011 1 次提交
-
-
由 Brian Anderson 提交于
This leaves syntax::ast just defining the AST, which strikes me as somewhat nicer
-
- 22 8月, 2011 3 次提交
-
-
由 Marijn Haverbeke 提交于
The syntax is alt x { mypat where mycond { ... } } The condition may refer to any of the variables bound by the pattern. When a guard fails, pattern-matching continues with the next pattern. Closes #857
-
由 Marijn Haverbeke 提交于
Since they are now passed by pointer, this is no longer a problem
-
由 Marijn Haverbeke 提交于
Type handles are uints, passing them by reference only causes unnecessary spilling.
-
- 21 8月, 2011 1 次提交
-
-
由 Brian Anderson 提交于
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
-
- 19 8月, 2011 4 次提交
-
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
- 18 8月, 2011 1 次提交
-
-
由 Marijn Haverbeke 提交于
This should make the compilation process a bit less noisy.
-
- 17 8月, 2011 8 次提交
-
-
由 Michael Sullivan 提交于
-
由 Michael Sullivan 提交于
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
由 Eric Holk 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
- 16 8月, 2011 8 次提交
-
-
由 Lindsey Kuper 提交于
-
由 Patrick Walton 提交于
-
由 Michael Sullivan 提交于
-
由 Michael Sullivan 提交于
-
由 Graydon Hoare 提交于
-
由 Paul Stansifer 提交于
-
由 Paul Stansifer 提交于
-
由 Patrick Walton 提交于
-
- 15 8月, 2011 3 次提交
-
-
由 Marijn Haverbeke 提交于
-
由 Marijn Haverbeke 提交于
-
由 Marijn Haverbeke 提交于
-
- 13 8月, 2011 3 次提交
-
-
由 Michael Sullivan 提交于
Autoderef on binops is basically unused, kind of silly, and complicates typechecking. There were only three instances of it in the compiler and the test drivers, two of which were of the form "*foo = foo + 1", which should be written as "*foo += 1" anyways.
-
由 Michael Sullivan 提交于
-
由 Michael Sullivan 提交于
-
- 12 8月, 2011 5 次提交
-
-
由 Marijn Haverbeke 提交于
Closes #813
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
This code path doesn't look possible, so I think it indicates a bug. Also, make the message lowercase.
-
由 Brian Anderson 提交于
-