<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/compile-fail/borrowck-vec-pattern-element-loan.rs, branch 0.8</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=0.8</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=0.8'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2013-08-07T18:07:24+00:00</updated>
<entry>
<title>Fix incorrect non-exhaustive matching for fixed length vecs</title>
<updated>2013-08-07T18:07:24+00:00</updated>
<author>
<name>Stepan Koltsov</name>
<email>stepan.koltsov@gmail.com</email>
</author>
<published>2013-08-07T18:07:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=828bfb2c61aaac93325b00737362769d045b6438'/>
<id>urn:sha1:828bfb2c61aaac93325b00737362769d045b6438</id>
<content type='text'>
Code like this is fixed now:

```
fn foo(p: [u8, ..4]) {
    match p {
        [a, b, c, d] =&gt; {}
    };
}
```

Invalid constructors are not reported as errors yet:

```
fn foo(p: [u8, ..4]) {
    match p {
        [_, _, _] =&gt; {} // this should be error
        [_, _, _, _, _, .._] =&gt; {} // and this
        _ =&gt; {}
    }
}
```

Issue #8311 is partially fixed by this commit. Fixed-length arrays in
let statement are not yet allowed:

```
let [a, b, c] = [1, 2, 3]; // still fails
```
</content>
</entry>
<entry>
<title>Use static string with fail!() and remove fail!(fmt!())</title>
<updated>2013-05-14T14:36:23+00:00</updated>
<author>
<name>Björn Steinbrink</name>
<email>bsteinbr@gmail.com</email>
</author>
<published>2013-05-05T22:18:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bdc182cc41c2741edc6fdc4ec09b8522479aab40'/>
<id>urn:sha1:bdc182cc41c2741edc6fdc4ec09b8522479aab40</id>
<content type='text'>
fail!() used to require owned strings but can handle static strings
now. Also, it can pass its arguments to fmt!() on its own, no need for
the caller to call fmt!() itself.
</content>
</entry>
<entry>
<title>new borrow checker (mass squash)</title>
<updated>2013-04-30T10:59:32+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2013-03-15T19:24:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a896440ca1b93cc5dc6edd827ea2ae89602bfa9e'/>
<id>urn:sha1:a896440ca1b93cc5dc6edd827ea2ae89602bfa9e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement vector destructuring from tail</title>
<updated>2013-03-11T10:01:51+00:00</updated>
<author>
<name>Seo Sanghyeon</name>
<email>sanxiyn@gmail.com</email>
</author>
<published>2013-02-26T18:58:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e85589ad3ba61169cd7722520981c1bebb5b542'/>
<id>urn:sha1:9e85589ad3ba61169cd7722520981c1bebb5b542</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/tutorials: Get rid of `move`.</title>
<updated>2013-02-15T10:49:55+00:00</updated>
<author>
<name>Luqman Aden</name>
<email>laden@mozilla.com</email>
</author>
<published>2013-02-15T10:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=178882c98feb4d19a88ce950b035bc40ffda2650'/>
<id>urn:sha1:178882c98feb4d19a88ce950b035bc40ffda2650</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove die!, raplace invocations with fail! Issue #4524 pt 3</title>
<updated>2013-02-14T01:01:32+00:00</updated>
<author>
<name>Nick Desaulniers</name>
<email>ndesaulniers@mozilla.com</email>
</author>
<published>2013-02-12T03:26:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4445b38df27777b043cad9ecc2452daad3469949'/>
<id>urn:sha1:4445b38df27777b043cad9ecc2452daad3469949</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace most invocations of fail keyword with die! macro</title>
<updated>2013-02-01T06:25:12+00:00</updated>
<author>
<name>Nick Desaulniers</name>
<email>ndesaulniers@mozilla.com</email>
</author>
<published>2013-02-01T01:51:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6fb4239bb361a927582a8ffd53a2ae649d810fdf'/>
<id>urn:sha1:6fb4239bb361a927582a8ffd53a2ae649d810fdf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Integrate vec patterns into borrow checker.</title>
<updated>2013-01-28T18:00:32+00:00</updated>
<author>
<name>Niko Matsakis</name>
<email>niko@alum.mit.edu</email>
</author>
<published>2013-01-25T03:33:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e10ea58c3c4954e2343363f392d65db1482ad90'/>
<id>urn:sha1:2e10ea58c3c4954e2343363f392d65db1482ad90</id>
<content type='text'>
The tail portion of the pattern effectively borrows a vector,
but the borrow checker knew nothing about this.

r=catamorphism
</content>
</entry>
</feed>
