bors
0c91f3d97f
Auto merge of #57234 - Centril:const-stabilizations-2, r=oli-obk
...
Const-stabilize `const_int_ops` + `const_ip`
r? @oli-obk
## Note for relnotes: This PR includes https://github.com/rust-lang/rust/pull/57105 .
I've added T-lang since this affects intrinsics and the operational semantics of Rust's `const fn` fragment.
## Stable APIs proposed for constification
+ `const_int_ops`:
+ `count_ones`
+ `count_zeros`
+ `leading_zeros`
+ `trailing_zeros`
+ `swap_bytes`
+ `from_be`
+ `from_le`
+ `to_be`
+ `to_le`
+ `const_ip`
+ `Ipv4Addr::new`
## Unstable APIs constified
+ `const_int_conversion`:
+ `reverse_bits`
2019-01-12 02:00:18 +00:00
kennytm
aa5fc743b5
Rollup merge of #57249 - frewsxcv:frewsxcv-second-edition, r=KodrAus
...
Fix broken links to second edition TRPL.
Fixes https://github.com/rust-lang/rust/issues/57104 .
Remove `second-edition/` from TRPL hyperlinks.
2019-01-05 23:56:48 +08:00
Corey Farwell
d2c91a1a6d
Fix broken links to second edition TRPL.
...
Fixes https://github.com/rust-lang/rust/issues/57104 .
2019-01-01 12:53:07 -05:00
Yuning Zhang
710dcbd381
Improve type mismatch error messages
...
Replace "integral variable" with "integer" and replace
"floating-point variable" with "floating-point number" to make the
message less confusing.
2018-12-31 20:43:08 -05:00
Mazdak Farrokhzad
2760f87e3a
const-stabilize const_int_ops + reverse_bits
2018-12-31 16:11:03 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Andy Russell
6474de904c
make non_camel_case_types an early lint
2018-12-24 12:58:52 -05:00
Vadim Petrochenkov
4fc3c13e32
resolve: Avoid sentence breaks in diagnostics
2018-11-18 13:58:36 +03:00
Felix S. Klock II
a2e090624e
Removed #[rustc_error] from tests that are all // compile-pass.
...
I also added `// skip-codegen` to each one, to address potential concerns
that this change would otherwise slow down our test suite spending time
generating code for files that are really just meant to be checks of
compiler diagnostics.
(However, I will say: My preference is to not use `// skip-codegen` if
one can avoid it. We can use all the testing of how we drive LLVM that
we can get...)
(Updated post rebase.)
2018-11-07 13:09:52 +01:00
Matthew Russo
79afc6e9e8
updates tests to use new error code
2018-08-24 08:51:25 -04:00
varkor
aa3b5c58e4
Fix diagnostic regression
2018-08-20 16:16:39 +01:00
varkor
b5c2470ba3
Update new ui tests
2018-08-20 00:08:01 +01:00
varkor
4722744e4d
Fix some remaining tests
2018-08-19 20:03:02 +01:00
varkor
49c45734c0
Refactor generic argument count check in astconv
2018-08-19 20:02:34 +01:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00