| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Plus add infrastructure to test type mismatches without expect.
|
| |
|
|
|
|
|
|
| |
MacroStmts should be completely transparent, but it prevented
coercion. (I should maybe give `infer_expr` and `infer_expr_inner`
better names.)
|
|
|
|
| |
Fixes #7626.
|
|
|
|
| |
Fixes #8604.
|
|
|
|
| |
Now we will get the type of `[0u8; 4]`.
|
|
|
|
|
|
|
|
|
|
|
| |
Now e.g.
```rust
fn a(b: [u8; 2]) {
}
```
will know about the length of b.
|
|
|
|
|
|
|
|
|
|
| |
This recognizes `let a = [1u8, 2, 3]` as having type `[u8; 3]` instead
of the previous `[u8; _]`. Byte strings and `[0u8; 2]` kinds of range
array declarations are unsupported as before.
I don't know why a bunch of our rustc tests had single quotes inside
strings un-escaped by `UPDATE_EXPECT=1 cargo t`, but I don't think it's
bad? Maybe something in a nightly?
|
| |
|
| |
|
|
|