- 25 6月, 2011 10 次提交
-
-
由 Michael Sullivan 提交于
-
由 Michael Sullivan 提交于
As a side effect, this fixes a bug where typestate would not properly be checked inside of fn expressions.
-
由 Michael Sullivan 提交于
Modify the fn vistors in walk so that they can handle functions without names. Update the typestate code to understand this.
-
由 Paul Stansifer 提交于
-
由 Patrick Walton 提交于
rustc: Increment by the unit size in iter_structural_ty when iterating over interior vectors if the unit size is dynamic
-
由 Marijn Haverbeke 提交于
Typeck and trans used to, by historical coincidence, use the item_obj node id, which was used to identify the obj type by the rest of the system, for the constructor function. This is now identified by the ctor id stored in the tag throughout.
-
由 Marijn Haverbeke 提交于
This in preparation of making 'res' a keyword for defining resources. Please don't introduce too many new ones in the meantime...
-
由 Marijn Haverbeke 提交于
-
由 Marijn Haverbeke 提交于
Since obj constructors and types have different def_ids now, their def can simply be a def_fn and a def_ty.
-
由 Patrick Walton 提交于
-
- 24 6月, 2011 12 次提交
-
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
The implementation is so simple it might be considered cheating: at almost every step the expr_ternary is just converted to expr_if.
-
由 Michael Sullivan 提交于
-
由 Eric Holk 提交于
-
由 Eric Holk 提交于
Wrote swap_context in assembly. Closes #548. This also allows us to re-enable optimization on OSX for both gcc and clang. Also, re-enamed task-comm-1.rs, which was previously broken by optimization.
-
We decided to use metadata for the more complex cases, and a simple string is enough for rustc right now.
-
由 Graydon Hoare 提交于
-
由 Patrick Walton 提交于
-
由 Tim Chevalier 提交于
If you use a function expecting an alias argument in a context that expects a function expecting a value argument, or vice versa, the previous error message complained that the number of arguments was wrong. Fixed the error message to be accurate.
-
由 Lindsey Kuper 提交于
-
- 23 6月, 2011 15 次提交
-
-
由 Tim Chevalier 提交于
typestate now drops constraints correctly in the post-state of a move expression or a declaration whose op is a move. It doesn't yet drop constraints mentioning variables that get updated. To do this, I had to change typestate to use trit-vectors instead of bit-vectors, because for every constraint, there are three possible values: known-to-be-false (e.g. after x <- y, init(y) is known-to-be-false), known-to-be-true, and unknown. Before, we conflated known-to-be-false with unknown. But move requires them to be treated differently. Consider: (program a) (a1) x = 1; (a2) y <- x; (a3) log x; (program b) (b1) x = 1; (b2) y <- z; (b3) log x; With only two values, the postcondition of statement a2 for constraint init(x) is the same as that of b2: 0. But in (a2)'s postcondition, init(x) *must* be false, but in (b2)'s condition, it's just whatever it was in the postcondition of the preceding statement.
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
Closes #367
-
由 Lindsey Kuper 提交于
-
由 Brian Anderson 提交于
This makes the error message correctly identify the term that wasn't the expected type. Issue #516.
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
This is so that subsequent reports about type mismatches get the types correct. Issue #516
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Paul Stansifer 提交于
module, not just everything exported.
-
由 Brian Anderson 提交于
Examples: #[test], #[link(name = "vers")] Issue #487
-
-
由 Brian Anderson 提交于
-
由 Paul Stansifer 提交于
-
- 22 6月, 2011 3 次提交
-
-
由 Brian Anderson 提交于
-
由 Michael Sullivan 提交于
-
由 Michael Sullivan 提交于
-