Yuki Okushi
eb5e63e3f0
Rollup merge of #107171 - petrochenkov:encattrs, r=cjgillot
...
rustc_metadata: Fix `encode_attrs`
This function didn't do what the authors intended it to do.
- Due to `move` in the closure `is_public` wasn't captured by mutalbe reference and wasn't used as a cache.
- Due to iterator cloning all the `should_encode_attr` logic run for the second time to calculate `may_have_doc_links`
This PR fixes these issues, and calculates all the needed attribute flags in one go.
(Noticed while implementing https://github.com/rust-lang/rust/pull/107136 .)
2023-01-27 12:57:54 +09:00
..
2023-01-22 23:41:39 -05:00
2023-01-26 12:44:47 +00:00
2023-01-26 20:32:28 +00:00
2023-01-19 13:52:15 +01:00
2023-01-26 12:44:47 +00:00
2023-01-26 15:02:19 +01:00
2023-01-26 12:44:47 +00:00
2023-01-27 00:03:09 +00:00
2023-01-25 01:46:19 -05:00
2023-01-26 09:14:05 +00:00
2023-01-26 15:02:19 +01:00
2023-01-26 09:14:05 +00:00
2023-01-26 15:02:21 +01:00
2023-01-23 10:35:21 +00:00
2023-01-23 20:38:14 +13:00
2023-01-26 15:02:20 +01:00
2023-01-17 08:09:33 +00:00
2023-01-20 04:52:28 +00:00
2023-01-25 17:01:41 +05:30
2023-01-26 12:44:47 +00:00
2023-01-23 11:42:18 +00:00
2023-01-26 06:15:27 +01:00
2023-01-17 08:09:33 +00:00
2023-01-19 15:25:33 +00:00
2023-01-26 07:53:26 +01:00
2023-01-23 10:35:21 +00:00
2023-01-17 08:09:33 +00:00
2023-01-23 11:42:18 +00:00
2023-01-22 06:53:36 +00:00
2023-01-21 23:20:58 -05:00
2023-01-17 23:17:51 -08:00
2023-01-27 12:57:54 +09:00
2023-01-26 20:32:28 +00:00
2023-01-26 15:58:08 +00:00
2023-01-17 08:09:33 +00:00
2023-01-26 03:50:37 -08:00
2023-01-18 10:22:21 -08:00
2023-01-26 06:15:24 +01:00
2023-01-18 20:33:17 +01:00
2023-01-26 12:44:47 +00:00
2023-01-18 10:22:21 -08:00
2023-01-17 08:09:33 +00:00
2023-01-25 08:58:27 -05:00
2023-01-16 14:46:44 +00:00
2023-01-27 12:57:54 +09:00
2023-01-26 12:44:47 +00:00
2023-01-26 06:15:27 +01:00
2023-01-26 06:15:29 +01:00
2023-01-23 11:42:18 +00:00
2023-01-18 10:22:21 -08:00
2023-01-26 06:15:27 +01:00
2023-01-17 08:09:33 +00:00