rust/compiler/rustc_metadata/src
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
..
rmeta Rollup merge of #107171 - petrochenkov:encattrs, r=cjgillot 2023-01-27 12:57:54 +09:00
creader.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
dependency_format.rs Add help for the error message when missing rustc_driver 2022-12-31 17:20:13 +00:00
errors.rs Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514 2023-01-03 08:05:54 +00:00
foreign_modules.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
fs.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
lib.rs Wrap bundlen static libraries into object files 2022-11-14 12:01:49 +03:00
locator.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
native_libs.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00