<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/num/uint_macros.rs, branch 1.6.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.6.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.6.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-08-16T01:09:16+00:00</updated>
<entry>
<title>core: Fill out issues for unstable features</title>
<updated>2015-08-16T01:09:16+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-08-13T00:23:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b7dcf272d90657bfea13e54939ee04fed7c7f5f0'/>
<id>urn:sha1:b7dcf272d90657bfea13e54939ee04fed7c7f5f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Temp fix for all constants that are missing docs.</title>
<updated>2015-06-21T15:04:37+00:00</updated>
<author>
<name>Eljay</name>
<email>lee@leejeffery.co.uk</email>
</author>
<published>2015-06-21T15:04:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0d485ce9acde28e548e6742abeecadee4c94adc'/>
<id>urn:sha1:c0d485ce9acde28e548e6742abeecadee4c94adc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>core: Split apart the global `core` feature</title>
<updated>2015-06-17T16:06:59+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-06-09T18:18:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c14d86fd3ff3ba2d01a6e859290b30e74081313b'/>
<id>urn:sha1:c14d86fd3ff3ba2d01a6e859290b30e74081313b</id>
<content type='text'>
This commit shards the broad `core` feature of the libcore library into finer
grained features. This split groups together similar APIs and enables tracking
each API separately, giving a better sense of where each feature is within the
stabilization process.

A few minor APIs were deprecated along the way:

* Iterator::reverse_in_place
* marker::NoCopy
</content>
</entry>
<entry>
<title>Change the type of constants BYTES/BITS to usize</title>
<updated>2015-03-30T09:19:11+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2015-03-28T12:57:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5825c72e730a12efdc0e2d60fb9d40f6f5ea771c'/>
<id>urn:sha1:5825c72e730a12efdc0e2d60fb9d40f6f5ea771c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change the trivial cast lints to allow by default</title>
<updated>2015-03-27T05:41:18+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-03-27T05:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a67faf1b25f40c3a4ad8545192136ceea8c4e63f'/>
<id>urn:sha1:a67faf1b25f40c3a4ad8545192136ceea8c4e63f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change lint names to plurals</title>
<updated>2015-03-24T21:06:13+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-03-23T22:23:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e7122a5a09d06aedd1d27d14c3ac38c40b0a7425'/>
<id>urn:sha1:e7122a5a09d06aedd1d27d14c3ac38c40b0a7425</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add trivial cast lints.</title>
<updated>2015-03-24T21:03:57+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>ncameron@mozilla.com</email>
</author>
<published>2015-03-20T04:15:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=95602a759d9190cad92279aa5929d30166f2255c'/>
<id>urn:sha1:95602a759d9190cad92279aa5929d30166f2255c</id>
<content type='text'>
This permits all coercions to be performed in casts, but adds lints to warn in those cases.

Part of this patch moves cast checking to a later stage of type checking. We acquire obligations to check casts as part of type checking where we previously checked them. Once we have type checked a function or module, then we check any cast obligations which have been acquired. That means we have more type information available to check casts (this was crucial to making coercions work properly in place of some casts), but it means that casts cannot feed input into type inference.

[breaking change]

* Adds two new lints for trivial casts and trivial numeric casts, these are warn by default, but can cause errors if you build with warnings as errors. Previously, trivial numeric casts and casts to trait objects were allowed.
* The unused casts lint has gone.
* Interactions between casting and type inference have changed in subtle ways. Two ways this might manifest are:
- You may need to 'direct' casts more with extra type information, for example, in some cases where `foo as _ as T` succeeded, you may now need to specify the type for `_`
- Casts do not influence inference of integer types. E.g., the following used to type check:

```
let x = 42;
let y = &amp;x as *const u32;
```

Because the cast would inform inference that `x` must have type `u32`. This no longer applies and the compiler will fallback to `i32` for `x` and thus there will be a type error in the cast. The solution is to add more type information:

```
let x: u32 = 42;
let y = &amp;x as *const u32;
```
</content>
</entry>
<entry>
<title>Accommodate arith-overflow in `core::num`, `std::num`, `coretest::num`.</title>
<updated>2015-03-03T11:10:57+00:00</updated>
<author>
<name>Felix S. Klock II</name>
<email>pnkfelix@pnkfx.org</email>
</author>
<published>2015-02-19T14:14:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c8db89aa82573b89481fde598da6e54371f266cb'/>
<id>urn:sha1:c8db89aa82573b89481fde598da6e54371f266cb</id>
<content type='text'>
 * `core::num`: adjust `UnsignedInt::is_power_of_two`,
   `UnsignedInt::next_power_of_two`, `Int::pow`.

   In particular for `Int::pow`: (1.) do not panic when `base`
   overflows if `acc` never observes the overflowed `base`, and (2.)
   if `acc` does observe the overflowed `base`, make sure we only
   panic if we would have otherwise (e.g. during a computation of
   `base * base`).

 * also in `core::num`: avoid underflow during computation of `uint::MAX`.

 * `std::num`: adjust tests `uint::test_uint_from_str_overflow`,
   `uint::test_uint_to_str_overflow`, `strconv`

 * `coretest::num`: adjust `test::test_int_from_str_overflow`.
</content>
</entry>
<entry>
<title>core: Audit num module for int/uint</title>
<updated>2015-03-03T00:12:46+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2015-02-20T05:05:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=76e9fa63ba0b6d892aa880db9c8373ede3e67c03'/>
<id>urn:sha1:76e9fa63ba0b6d892aa880db9c8373ede3e67c03</id>
<content type='text'>
* count_ones/zeros, trailing_ones/zeros return u32, not usize
* rotate_left/right take u32, not usize
* RADIX, MANTISSA_DIGITS, DIGITS, BITS, BYTES are u32, not usize

Doesn't touch pow because there's another PR for it.

[breaking-change]
</content>
</entry>
<entry>
<title>grandfathered -&gt; rust1</title>
<updated>2015-01-24T05:48:20+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2015-01-24T05:48:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b44ee371b8beea77aa1364460acbba14a8516559'/>
<id>urn:sha1:b44ee371b8beea77aa1364460acbba14a8516559</id>
<content type='text'>
</content>
</entry>
</feed>
