rust/compiler
Stuart Cook b165a4c280
Rollup merge of #140801 - xizheyin:issue-140747, r=SparrowLii
Use span before macro expansion in lint for-loops-over-falibles

Fixes #140747

I think there are going to be a lot of cases where macros are expanded in the compiler resulting in span offsets, and I'd like to know how that's typically handled. Does it have to be handled specially every time?
2025-05-09 16:25:03 +10:00
..
rustc Revert "Use workspace lints for crates in compiler/ #138084" 2025-03-10 18:12:47 +08:00
rustc_abi Initial UnsafePinned/UnsafeUnpin impl [Part 1: Libs] 2025-04-13 01:11:04 -04:00
rustc_arena Introduce Arena::try_alloc_from_iter. 2025-04-19 01:13:18 +00:00
rustc_ast Add useful comments on ExprKind::If variants. 2025-05-02 15:53:39 +10:00
rustc_ast_ir Use -Wunused_crate_dependencies for compiler crates. 2025-03-20 08:59:43 +11:00
rustc_ast_lowering Auto merge of #140453 - Zoxc:next-disambiguator, r=oli-obk 2025-05-05 11:50:43 +00:00
rustc_ast_passes Rollup merge of #140035 - fee1-dead-contrib:push-oszwkkvmpkks, r=jieyouxu,wesleywiser 2025-05-06 16:28:39 +10:00
rustc_ast_pretty Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
rustc_attr_data_structures Make #![feature(let_chains)] bootstrap conditional in compiler/ 2025-04-23 16:40:30 +02:00
rustc_attr_parsing Avoid some unwraps. 2025-05-07 12:56:44 +10:00
rustc_baked_icu_data Add unreachable_pub to RUSTC_LINT_FLAGS for compiler/ crates. 2025-03-11 13:14:21 +11:00
rustc_borrowck Rollup merge of #140260 - compiler-errors:only-global-post-norm, r=lcnr 2025-05-08 08:14:16 +02:00
rustc_builtin_macros Remove duplicate impl of string unescape 2025-05-06 10:00:22 +00:00
rustc_codegen_cranelift Rename Instance::new to Instance::new_raw and add a note that it is raw 2025-05-05 13:17:35 +00:00
rustc_codegen_gcc Rename Instance::new to Instance::new_raw and add a note that it is raw 2025-05-05 13:17:35 +00:00
rustc_codegen_llvm Auto merge of #140176 - dpaoliello:arm64ecdec, r=wesleywiser 2025-05-09 00:43:28 +00:00
rustc_codegen_ssa [Arm64EC] Only decorate functions with # 2025-05-07 10:36:12 -07:00
rustc_const_eval Auto merge of #140453 - Zoxc:next-disambiguator, r=oli-obk 2025-05-05 11:50:43 +00:00
rustc_data_structures Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk 2025-05-07 12:39:54 +00:00
rustc_driver Remove recursion_limit increases. 2025-04-02 16:25:27 +11:00
rustc_driver_impl added error handle for error code > 9999 2025-05-06 23:02:47 +05:00
rustc_error_codes resolve: Support imports of associated types and glob imports from traits 2025-05-02 15:59:38 +03:00
rustc_error_messages update cfgs 2025-04-09 12:29:59 +01:00
rustc_errors Make #![feature(let_chains)] bootstrap conditional in compiler/ 2025-04-23 16:40:30 +02:00
rustc_expand Make attribute safety validation logic more obvious 2025-05-04 21:44:50 +08:00
rustc_feature Rollup merge of #139534 - madhav-madhusoodanan:apx-target-feature-addition, r=workingjubilee 2025-05-07 00:29:21 +00:00
rustc_fluent_macro Replace proc_macro::SourceFile by Span::{file, local_file}. 2025-04-11 15:07:08 +02:00
rustc_fs_util Retry if creating temp fails with access denied 2025-04-25 11:28:36 +00:00
rustc_graphviz Remove #![warn(unreachable_pub)] from all compiler/ crates. 2025-03-11 13:14:21 +11:00
rustc_hashes Revert "Use workspace lints for crates in compiler/ #138084" 2025-03-10 18:12:47 +08:00
rustc_hir Add DefPathData::OpaqueLifetime to avoid conflicts for remapped opaque lifetimes 2025-05-07 22:17:29 +02:00
rustc_hir_analysis Rollup merge of #140684 - compiler-errors:unnecessary-assoc, r=lcnr 2025-05-08 20:22:16 +02:00
rustc_hir_pretty Avoid an indent for labelled loops. 2025-05-03 12:46:51 +10:00
rustc_hir_typeck Structurally resolve in check_ref_cast and calc_adjust_mode 2025-05-08 15:00:17 +00:00
rustc_incremental Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk 2025-05-07 12:39:54 +00:00
rustc_index Add copy_within to IndexSlice 2025-04-15 10:44:28 -04:00
rustc_index_macros In rustc_mir_tranform, iterate over index newtypes instead of ints 2025-04-12 11:53:07 +00:00
rustc_infer Rollup merge of #140641 - lcnr:opaque-type-storage-entries, r=compiler-errors 2025-05-08 08:14:18 +02:00
rustc_interface Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
rustc_lexer Implement RFC 3503: frontmatters 2025-05-05 23:10:08 +08:00
rustc_lint Rollup merge of #140801 - xizheyin:issue-140747, r=SparrowLii 2025-05-09 16:25:03 +10:00
rustc_lint_defs Rollup merge of #134273 - RalfJung:de-stabilize-bench, r=ibraheemdev,traviscross 2025-05-07 00:29:20 +00:00
rustc_llvm PassWrapper: adapt for llvm/llvm-project@f137c3d592 2025-05-01 17:59:00 +00:00
rustc_log Allow linking rustc and rustdoc against the same single tracing crate 2025-05-03 10:18:50 -07:00
rustc_macros Rename rustc_query_append! to rustc_with_all_queries! 2025-04-29 20:48:51 +10:00
rustc_metadata Rollup merge of #139550 - Urgau:rmeta-remap-path-scope, r=nnethercote 2025-05-06 16:28:38 +10:00
rustc_middle Auto merge of #140176 - dpaoliello:arm64ecdec, r=wesleywiser 2025-05-09 00:43:28 +00:00
rustc_mir_build Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
rustc_mir_dataflow Rollup merge of #140234 - nnethercote:separate-Analysis-and-Results, r=davidtwco 2025-05-07 18:19:04 +02:00
rustc_mir_transform Rollup merge of #140234 - nnethercote:separate-Analysis-and-Results, r=davidtwco 2025-05-07 18:19:04 +02:00
rustc_monomorphize Rename Instance::new to Instance::new_raw and add a note that it is raw 2025-05-05 13:17:35 +00:00
rustc_next_trait_solver Rollup merge of #140711 - compiler-errors:combine-maybes, r=lcnr 2025-05-08 08:14:18 +02:00
rustc_parse Rollup merge of #140671 - xizheyin:issue-140169, r=petrochenkov 2025-05-07 18:19:06 +02:00
rustc_parse_format Remove duplicate impl of string unescape 2025-05-06 10:00:22 +00:00
rustc_passes Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
rustc_pattern_analysis error early when mixing deref patterns with normal constructors 2025-05-06 18:53:55 -07:00
rustc_privacy Rollup merge of #140249 - BoxyUwU:remove_weak_alias_terminology, r=oli-obk 2025-04-28 13:30:45 +02:00
rustc_query_impl Auto merge of #140145 - Zoxc:job-server-proxy, r=SparrowLii 2025-05-01 04:11:52 +00:00
rustc_query_system Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk 2025-05-07 12:39:54 +00:00
rustc_resolve Auto merge of #131160 - ismailarilik:handle-potential-query-instability-lint-for-rustc-middle, r=oli-obk 2025-05-06 01:36:23 +00:00
rustc_sanitizers Add DefPathData::OpaqueLifetime to avoid conflicts for remapped opaque lifetimes 2025-05-07 22:17:29 +02:00
rustc_serialize Zero the buffer passed from write_with 2025-04-25 07:14:27 +02:00
rustc_session Rollup merge of #139550 - Urgau:rmeta-remap-path-scope, r=nnethercote 2025-05-06 16:28:38 +10:00
rustc_smir Rename Instance::new to Instance::new_raw and add a note that it is raw 2025-05-05 13:17:35 +00:00
rustc_span Rollup merge of #140419 - Jarcho:ctxt_external, r=Nadrieril 2025-05-07 00:29:22 +00:00
rustc_symbol_mangling Add DefPathData::OpaqueLifetime to avoid conflicts for remapped opaque lifetimes 2025-05-07 22:17:29 +02:00
rustc_target Auto merge of #140176 - dpaoliello:arm64ecdec, r=wesleywiser 2025-05-09 00:43:28 +00:00
rustc_trait_selection Rollup merge of #140736 - xizheyin:issue-140166, r=petrochenkov 2025-05-08 13:55:44 +02:00
rustc_traits Set groundwork for proper const normalization 2025-05-01 20:05:02 +01:00
rustc_transmute Rollup merge of #140509 - tmiasko:merge-contiguous-ranges, r=jswrenn 2025-05-02 19:37:56 +02:00
rustc_ty_utils Rollup merge of #140260 - compiler-errors:only-global-post-norm, r=lcnr 2025-05-08 08:14:16 +02:00
rustc_type_ir Rollup merge of #140711 - compiler-errors:combine-maybes, r=lcnr 2025-05-08 08:14:18 +02:00
rustc_type_ir_macros Split TypeFolder and FallibleTypeFolder 2025-04-15 18:30:35 +00:00
stable_mir Change rustc_driver dependency on stable_mir crate 2025-04-30 15:39:52 -07:00