Commit graph

5 commits

Author SHA1 Message Date
oli
0b841846ba Allow references to interior mutable data behind a feature gate 2021-01-01 16:59:12 +00:00
Christian Poveda
1f48465a01
update diagnostics for &mut in constants 2020-06-19 11:48:46 -05:00
Dylan MacKenzie
d2bdaa8deb Also test shared borrows of Cell for good errors 2019-11-27 14:37:06 -08:00
Dylan MacKenzie
5a3ddcd771 Update test with improved diagnostics
Now, `derived_from_illegal_borrow` is also applied to reborrows, so we
don't show the user a useless error message.
2019-11-27 13:07:19 -08:00
Dylan MacKenzie
457c3aa672 Add additional const tests 2019-09-28 07:06:51 -07:00