rust/compiler
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
..
rustc
rustc_abi abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
rustc_ast_lowering Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov 2023-01-26 20:32:28 +00:00
rustc_ast_passes Autoderive ExternBlockSuggestion 2023-01-19 13:52:15 +01:00
rustc_ast_pretty Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
rustc_attr Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_baked_icu_data
rustc_borrowck Rollup merge of #106971 - oli-obk:tait_error, r=davidtwco 2023-01-26 15:02:19 +01:00
rustc_builtin_macros Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
rustc_codegen_cranelift Auto merge of #107269 - bjorn3:sync_cg_clif-2023-01-24, r=bjorn3 2023-01-27 00:03:09 +00:00
rustc_codegen_gcc create and use GlobalAlloc::address_space 2023-01-25 01:46:19 -05:00
rustc_codegen_llvm Auto merge of #107318 - matthiaskrgr:rollup-776kd81, r=matthiaskrgr 2023-01-26 09:14:05 +00:00
rustc_codegen_ssa Rollup merge of #106904 - khuey:preserve_debuginfo_for_rlibs, r=davidtwco 2023-01-26 15:02:19 +01:00
rustc_const_eval Auto merge of #107318 - matthiaskrgr:rollup-776kd81, r=matthiaskrgr 2023-01-26 09:14:05 +00:00
rustc_data_structures Rollup merge of #107168 - Nilstrieb:if-a-tait-falls-in-the-forest,can-we-know-it-wasnt-revealed, r=oli-obk 2023-01-26 15:02:21 +01:00
rustc_driver Store the gctxt instead of fetching it twice. 2023-01-23 10:35:21 +00:00
rustc_error_codes add UI test + docs for E0789 2023-01-23 20:38:14 +13:00
rustc_error_messages Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco 2023-01-26 15:02:20 +01:00
rustc_errors Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
rustc_expand Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb 2023-01-20 04:52:28 +00:00
rustc_feature Rollup merge of #106767 - chbaker0:disable-unstable-features, r=Mark-Simulacrum 2023-01-25 17:01:41 +05:30
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
rustc_hir_analysis fix: use LocalDefId instead of HirId in trait res 2023-01-23 11:42:18 +00:00
rustc_hir_pretty parse const closures 2023-01-12 02:28:37 +00:00
rustc_hir_typeck Rollup merge of #107248 - erikdesjardins:addrspace, r=oli-obk 2023-01-26 06:15:27 +01:00
rustc_incremental Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
rustc_index Fix IndexVec::drain_enumerated 2023-01-19 15:25:33 +00:00
rustc_infer Rollup merge of #107304 - Nilstrieb:ᐸTy as PartialEqᐳ::eq because what else are we gonna use in rustc_middle, r=compiler-errors 2023-01-26 07:53:26 +01:00
rustc_interface Store the gctxt instead of fetching it twice. 2023-01-23 10:35:21 +00:00
rustc_lexer Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
rustc_lint fix: use LocalDefId instead of HirId in trait res 2023-01-23 11:42:18 +00:00
rustc_lint_defs Auto merge of #107185 - compiler-errors:rollup-wkomjma, r=compiler-errors 2023-01-22 06:53:36 +00:00
rustc_llvm Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic 2023-01-21 23:20:58 -05:00
rustc_log Add log-backtrace option to show backtraces along with logging 2023-01-12 00:17:48 +09:00
rustc_macros Stop using BREAK & CONTINUE in compiler 2023-01-17 23:17:51 -08:00
rustc_metadata Rollup merge of #107171 - petrochenkov:encattrs, r=cjgillot 2023-01-27 12:57:54 +09:00
rustc_middle Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov 2023-01-26 20:32:28 +00:00
rustc_mir_build Auto merge of #107328 - matthiaskrgr:rollup-lfqwo0o, r=matthiaskrgr 2023-01-26 15:58:08 +00:00
rustc_mir_dataflow Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
rustc_mir_transform Disable ConstGoto opt in cleanup blocks 2023-01-26 03:50:37 -08:00
rustc_monomorphize Also remove #![feature(control_flow_enum)] where possible 2023-01-18 10:22:21 -08:00
rustc_parse Rollup merge of #106960 - estebank:parse-anon-enums, r=cjgillot 2023-01-26 06:15:24 +01:00
rustc_parse_format Revert "Improve heuristics whether format_args string is a source literal" 2023-01-18 20:33:17 +01:00
rustc_passes Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
rustc_plugin_impl
rustc_privacy Also remove #![feature(control_flow_enum)] where possible 2023-01-18 10:22:21 -08:00
rustc_query_impl Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_query_system Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
rustc_resolve suggest qualifying bare associated constants 2023-01-25 08:58:27 -05:00
rustc_save_analysis Avoid an unnecessary allocation 2023-01-16 14:46:44 +00:00
rustc_serialize compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_session Rollup merge of #106856 - vadorovsky:fix-atomic-annotations, r=joshtriplett 2023-01-27 12:57:54 +09:00
rustc_smir
rustc_span Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
rustc_symbol_mangling Add type flags support for Ty and Const late-bound regions 2023-01-08 03:37:20 +00:00
rustc_target Rollup merge of #107248 - erikdesjardins:addrspace, r=oli-obk 2023-01-26 06:15:27 +01:00
rustc_trait_selection Rollup merge of #107286 - compiler-errors:new-solver-deny-infers, r=lcnr 2023-01-26 06:15:29 +01:00
rustc_traits fix: use LocalDefId instead of HirId in trait res 2023-01-23 11:42:18 +00:00
rustc_transmute Also remove #![feature(control_flow_enum)] where possible 2023-01-18 10:22:21 -08:00
rustc_ty_utils Rollup merge of #107248 - erikdesjardins:addrspace, r=oli-obk 2023-01-26 06:15:27 +01:00
rustc_type_ir Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00