summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/dangling.rs
AgeCommit message (Collapse)AuthorLines
2021-11-06Stabilize `const_raw_ptr_deref` for `*const T`Jacob Pratt-2/+0
This stabilizes dereferencing immutable raw pointers in const contexts. It does not stabilize `*mut T` dereferencing. This is placed behind the `const_raw_mut_ptr_deref` feature gate.
2021-06-18bless youRalf Jung-2/+1
2021-05-15get rid of a bunch of unnecessary NOTE in const testsRalf Jung-4/+2
2021-02-03make const_err a future incompat lintRalf Jung-2/+4
2020-11-29Update tests to remove old numeric constantsbstrie-1/+1
Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
2020-07-11Stabilize `transmute` in constants and statics but not const fnOliver Scherer-1/+1
2020-03-08fix some cases of unexpected exceptions leaving validationRalf Jung-1/+1
2019-08-30add testRalf Jung-0/+13