Oliver Scherer
9245ba8304
Remove the const_raw_ptr_comparison feature gate.
...
We can never supply a meaningful implementation of this.
Instead, the follow up commits will create two intrinsics
that approximate comparisons:
* `ptr_maybe_eq`
* `ptr_maybe_ne`
The fact that `ptr_maybe_eq(a, b)` is not necessarily the same
value as `!ptr_maybe_ne(a, b)` is a symptom of this entire
problem.
2020-06-19 18:13:41 +02:00
Ralf Jung
93436d8fd7
make error message less confusing
2020-03-11 19:44:23 +01:00
Ralf Jung
d02543a453
fmt, tweak messages and bless
2020-03-11 19:44:23 +01:00
Ralf Jung
7885fac7e9
improve error when CTFE does ptr-int-cast; update tests
2019-08-02 23:01:53 +02:00
Samy Kacimi
e5e1397adb
normalize use of backticks in compiler messages for librustc/lint
...
https://github.com/rust-lang/rust/issues/60532
2019-07-17 22:49:48 +02:00
Esteban Küber
8e043950c8
Swap const evaluation lint spans to point at problem in primary span
2019-03-23 13:05:30 -07:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
Oliver Scherer
aedc3a51df
Declare some unconst operations as unsafe in const fn
2019-01-21 16:01:57 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Oliver Schneider
7fdf06cdde
Report const eval error inside the query
2018-10-25 16:46:19 +02:00
Ralf Jung
0b8c691f76
fix UI tests
2018-08-22 13:08:39 +02:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00