<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/compile-fail/borrow-tuple-fields.rs, branch 1.23.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.23.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.23.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-09-17T00:16:46+00:00</updated>
<entry>
<title>Changes to tests</title>
<updated>2015-09-17T00:16:46+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-09-11T08:15:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c1084a3ada125b83c03c40b1f304f2f34abf0da0'/>
<id>urn:sha1:c1084a3ada125b83c03c40b1f304f2f34abf0da0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `: Box&lt;_&gt;` or `::Box&lt;_&gt;` type annotations to various places.</title>
<updated>2015-03-03T19:29:01+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2015-02-17T20:41:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=270f0eef733a625bcee68019189f19dc119f8f24'/>
<id>urn:sha1:270f0eef733a625bcee68019189f19dc119f8f24</id>
<content type='text'>
This is the kind of change that one is expected to need to make to
accommodate overloaded-`box`.

----

Note that this is not *all* of the changes necessary to accommodate
Issue 22181.  It is merely the subset of those cases where there was
already a let-binding in place that made it easy to add the necesasry
type ascription.

(For unnamed intermediate `Box` values, one must go down a different
route; `Box::new` is the option that maximizes portability, but has
potential inefficiency depending on whether the call is inlined.)

----

There is one place worth note, `run-pass/coerce-match.rs`, where I
used an ugly form of `Box&lt;_&gt;` type ascription where I would have
preferred to use `Box::new` to accommodate overloaded-`box`.  I
deliberately did not use `Box::new` here, because that is already done
in coerce-match-calls.rs.

----

Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
</content>
</entry>
<entry>
<title>Kill more `isize`s</title>
<updated>2015-01-31T16:40:40+00:00</updated>
<author>
<name>Tobias Bucher</name>
<email>tobiasbucher5991@gmail.com</email>
</author>
<published>2015-01-31T16:23:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b4a43f3864e394959a7d3c3efae6da85bdc59c71'/>
<id>urn:sha1:b4a43f3864e394959a7d3c3efae6da85bdc59c71</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update compile-fail tests to use is/us, not i/u.</title>
<updated>2015-01-08T16:02:24+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2015-01-08T11:05:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=441044f071181b52144bad15a50bf91dc06771a5'/>
<id>urn:sha1:441044f071181b52144bad15a50bf91dc06771a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update compile fail tests to use isize.</title>
<updated>2015-01-08T16:02:24+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2015-01-08T10:54:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0c70ce1424f380360dcc8d857c68d2df1a27b6fd'/>
<id>urn:sha1:0c70ce1424f380360dcc8d857c68d2df1a27b6fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fallout: part of changes to compile-fail tests.  (follows same pattern as prior two commits.)</title>
<updated>2015-01-08T01:41:23+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2015-01-08T01:41:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ae4bcd41e8014b6057fe0a328c87f32f917396ba'/>
<id>urn:sha1:ae4bcd41e8014b6057fe0a328c87f32f917396ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove feature gates for `if let`, `while let`, and tuple indexing</title>
<updated>2014-12-03T17:45:08+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2014-12-02T22:13:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c200ae5a8a1ab70cfea39ef184e1fd0e87b33181'/>
<id>urn:sha1:c200ae5a8a1ab70cfea39ef184e1fd0e87b33181</id>
<content type='text'>
Closes #19469
</content>
</entry>
<entry>
<title>Implement tuple and tuple struct indexing</title>
<updated>2014-09-09T22:25:12+00:00</updated>
<author>
<name>P1start</name>
<email>rewi-github@whanau.org</email>
</author>
<published>2014-08-10T03:54:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bf274bc18bcbfea1377c5c64ae0cc099b03d9beb'/>
<id>urn:sha1:bf274bc18bcbfea1377c5c64ae0cc099b03d9beb</id>
<content type='text'>
This allows code to access the fields of tuples and tuple structs:

    let x = (1i, 2i);
    assert_eq!(x.1, 2);

    struct Point(int, int);
    let origin = Point(0, 0);
    assert_eq!(origin.0, 0);
    assert_eq!(origin.1, 0);
</content>
</entry>
</feed>
