rust/compiler
Matthias Krüger bf42ba41a4
Rollup merge of #101156 - Jarcho:remove_sync_lint_pass, r=compiler-errors
Remove `Sync` requirement from lint pass objects

This is blocking the clippy sync (#101140). One of the lint passes contains a `Cell` in order to make lifetimes work. It could be worked around, but this is the easier change to make if there are no objections.

Rational for removing the requirement
* All lint pass methods take `&mut self` arguments.
* Many passes depend on running is visitor order.
* Lint passes are created on demand so they're only ever stored in a local.
* `Send` is enough to lint different passes in parallel.

`LintStore` remains `Sync` with this. The constructor functions it contains still maintain their `Sync` requirement.

r? rust-lang/compiler
2022-08-29 21:13:00 +02:00
..
rustc Don't rerun the build script for the compiler each time on linux 2022-07-10 23:57:25 -05:00
rustc_apfloat Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_arena Rollup merge of #100822 - WaffleLapkin:no_offset_question_mark, r=scottmcm 2022-08-21 16:54:07 +02:00
rustc_ast Rollup merge of #100978 - nnethercote:fix-100948, r=petrochenkov 2022-08-26 09:51:46 +09:00
rustc_ast_lowering Rollup merge of #100724 - JeanCASPAR:migrate-ast_lowering-to-session-diagnostic, r=davidtwco 2022-08-26 15:56:21 -07:00
rustc_ast_passes Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petrochenkov 2022-08-25 08:50:54 +09:00
rustc_ast_pretty Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_attr use smaller span for suggestions 2022-08-27 15:22:08 +09:00
rustc_borrowck Rollup merge of #101146 - jackh726:borrowck-logging, r=compiler-errors 2022-08-29 21:12:59 +02:00
rustc_builtin_macros Auto merge of #100497 - kadiwa4:remove_clone_into_iter, r=cjgillot 2022-08-28 18:31:08 +00:00
rustc_codegen_cranelift Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
rustc_codegen_gcc Auto merge of #96946 - WaffleLapkin:ptr_mask, r=scottmcm 2022-08-28 01:34:47 +00:00
rustc_codegen_llvm Rollup merge of #101098 - petrochenkov:noinvis, r=TaKO8Ki 2022-08-28 09:35:22 +02:00
rustc_codegen_ssa Rollup merge of #101141 - compiler-errors:get-trait-ref-is-a-misleading-name, r=oli-obk 2022-08-29 21:12:58 +02:00
rustc_const_eval Rollup merge of #101131 - RalfJung:ctfe-no-needs-rfc, r=oli-obk 2022-08-29 21:12:57 +02:00
rustc_data_structures get rid of RefCell in TransitiveRelation 2022-08-22 18:08:46 +08:00
rustc_driver Code cleaning 2022-08-25 19:04:00 +02:00
rustc_error_codes Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
rustc_error_messages Rollup merge of #100843 - IntQuant:issue-100717-infer, r=compiler-errors 2022-08-29 06:34:45 +02:00
rustc_errors errors: IntoDiagnosticArg for io::Error/paths 2022-08-24 06:50:44 +09:00
rustc_expand Remove the symbol from ast::LitKind::Err. 2022-08-23 16:56:24 +10:00
rustc_feature Adjust label break value stabilization version to CURRENT_RUSTC_VERSION 2022-08-27 17:36:13 +02:00
rustc_fs_util Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_graphviz Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_hir Merge implementations of HIR fn_decl and fn_sig. 2022-08-26 21:38:20 +02:00
rustc_hir_pretty Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_incremental Remove trait_of_item query. 2022-08-01 21:39:26 +02:00
rustc_index Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_infer Rollup merge of #101146 - jackh726:borrowck-logging, r=compiler-errors 2022-08-29 21:12:59 +02:00
rustc_interface Rollup merge of #100808 - SkiFire13:migrate_diagnostics_rustc_interface, r=davidtwco 2022-08-25 08:50:58 +09:00
rustc_lexer Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_lint Remove Sync requirement from lint pass objects as they are created on demand 2022-08-29 10:00:22 -04:00
rustc_lint_defs Rollup merge of #99784 - est31:deny_cfg_attr_crate_type_name, r=Mark-Simulacrum 2022-08-27 13:14:16 +09:00
rustc_llvm Auto merge of #100627 - krasimirgg:lto-llvm-16, r=cuviper 2022-08-21 07:19:49 +00:00
rustc_log Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_macros Rollup merge of #100959 - LuisCardosoOliveira:translation-rename-attr-warning, r=davidtwco 2022-08-29 06:34:47 +02:00
rustc_metadata Implementation of import_name_type 2022-08-26 09:15:35 -07:00
rustc_middle Rollup merge of #100437 - compiler-errors:better-const-mismatch-err, r=oli-obk 2022-08-29 06:34:44 +02:00
rustc_mir_build Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
rustc_mir_dataflow Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
rustc_mir_transform Rollup merge of #101111 - saethlin:better-fnentry-spans, r=RalfJung 2022-08-29 06:34:48 +02:00
rustc_monomorphize Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
rustc_parse Auto merge of #100497 - kadiwa4:remove_clone_into_iter, r=cjgillot 2022-08-28 18:31:08 +00:00
rustc_parse_format Fix rustc_parse_format precision & width spans 2022-08-21 20:21:45 +00:00
rustc_passes Rollup merge of #100959 - LuisCardosoOliveira:translation-rename-attr-warning, r=davidtwco 2022-08-29 06:34:47 +02:00
rustc_plugin_impl Migrate rustc_plugin_impl to SessionDiagnostic 2022-08-22 16:35:05 +01:00
rustc_privacy rustc_middle: Remove Visibility::Invisible 2022-08-27 22:34:18 +03:00
rustc_query_impl Auto merge of #100946 - jyn514:query-system-3, r=cjgillot 2022-08-27 08:53:24 +00:00
rustc_query_system add depth_limit in QueryVTable 2022-08-24 09:42:12 +08:00
rustc_resolve Auto merge of #100497 - kadiwa4:remove_clone_into_iter, r=cjgillot 2022-08-28 18:31:08 +00:00
rustc_save_analysis save_analysis: Migrate diagnostics 2022-08-24 06:50:16 +09:00
rustc_serialize Adding support for rustc_serialize encode and decode for Box and Vec that use a custom allocator 2022-08-25 20:19:49 +00:00
rustc_session Auto merge of #100732 - dpaoliello:import_name_type, r=wesleywiser 2022-08-27 03:19:12 +00:00
rustc_smir Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_span Rollup merge of #100898 - compiler-errors:too-many-expr-fields, r=spastorino 2022-08-29 21:12:54 +02:00
rustc_symbol_mangling Change FnAbi::fixed_count to a u32. 2022-08-26 10:29:40 +10:00
rustc_target Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_trait_selection Auto merge of #98626 - oli-obk:tracing, r=lcnr 2022-08-29 11:13:42 +00:00
rustc_traits Various changes to logging of borrowck-related code 2022-08-29 10:59:21 -04:00
rustc_transmute Rollup merge of #100604 - dtolnay:okorerr, r=m-ou-se 2022-08-26 09:51:44 +09:00
rustc_ty_utils Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
rustc_type_ir ADD - diagnostic lints to type_ir 2022-08-18 13:33:03 -04:00
rustc_typeck Rollup merge of #100898 - compiler-errors:too-many-expr-fields, r=spastorino 2022-08-29 21:12:54 +02:00