rust/compiler
Yuki Okushi 3e937d02a0
Rollup merge of #104467 - fuzzypixelz:fix/attempt-to-substract-with-overflow, r=compiler-errors
Fix substraction with overflow in `wrong_number_of_generic_args.rs`

Fixes #104287

This issue happens in the `suggest_moving_args_from_assoc_fn_to_trait_for_qualified_path` function, which seems to run before the error checking facilities can catch an invalid use of generic arguments. Thus we get a subtraction with overflow because the code implicitly assumes that the source program makes sense (or is this assumption not true even if the program is correct?).
2022-11-20 13:15:59 +09:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Use ThinVec in ast::Path. 2022-11-17 13:56:38 +11:00
rustc_ast_lowering Auto merge of #101562 - nnethercote:shrink-ast-Expr-harder, r=petrochenkov 2022-11-18 16:56:12 +00:00
rustc_ast_passes
rustc_ast_pretty Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
rustc_attr
rustc_baked_icu_data Update crate documentation of rustc_baked_icu_data crate 2022-11-18 14:46:36 -08:00
rustc_borrowck require an ErrorGuaranteed to taint infcx with errors 2022-11-18 13:25:17 +00:00
rustc_builtin_macros Box ExprKind::{Closure,MethodCall}, and QSelf in expressions, types, and patterns. 2022-11-17 13:45:59 +11:00
rustc_codegen_cranelift Rollup merge of #104001 - Ayush1325:custom-entry, r=bjorn3 2022-11-19 11:54:43 +05:30
rustc_codegen_gcc Rollup merge of #104001 - Ayush1325:custom-entry, r=bjorn3 2022-11-19 11:54:43 +05:30
rustc_codegen_llvm Rollup merge of #104001 - Ayush1325:custom-entry, r=bjorn3 2022-11-19 11:54:43 +05:30
rustc_codegen_ssa Rollup merge of #104001 - Ayush1325:custom-entry, r=bjorn3 2022-11-19 11:54:43 +05:30
rustc_const_eval Auto merge of #102795 - lukas-code:constify-is-aligned-via-align-offset, r=oli-obk 2022-11-19 18:57:39 +00:00
rustc_data_structures Auto merge of #97870 - eggyal:inplace_fold_spec, r=wesleywiser 2022-11-19 02:28:47 +00:00
rustc_driver Rollup merge of #103117 - joshtriplett:use-is-terminal, r=eholk 2022-11-19 15:35:18 +01:00
rustc_error_codes Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot 2022-11-15 10:44:12 +01:00
rustc_error_messages Auto merge of #104591 - Manishearth:rollup-b3ser4e, r=Manishearth 2022-11-18 23:20:53 +00:00
rustc_errors Rollup merge of #103117 - joshtriplett:use-is-terminal, r=eholk 2022-11-19 15:35:18 +01:00
rustc_expand Rollup merge of #104566 - matthiaskrgr:clippy_perf_nov18, r=oli-obk 2022-11-19 11:54:46 +05:30
rustc_feature Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot 2022-11-15 10:44:12 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #104593 - compiler-errors:rpitit-object-safety-spans, r=fee1-dead 2022-11-19 15:35:23 +01:00
rustc_hir_analysis Rollup merge of #104467 - fuzzypixelz:fix/attempt-to-substract-with-overflow, r=compiler-errors 2022-11-20 13:15:59 +09:00
rustc_hir_pretty
rustc_hir_typeck Rollup merge of #104497 - lyming2007:issue-104379-fix, r=fee1-dead 2022-11-19 15:35:21 +01:00
rustc_incremental
rustc_index
rustc_infer Rollup merge of #104554 - BoxyUwU:less_unchecked_pls, r=lcnr 2022-11-19 11:54:45 +05:30
rustc_interface Enable icu sync feature for parallel compiler 2022-11-18 14:46:35 -08:00
rustc_lexer Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_lint Rollup merge of #104566 - matthiaskrgr:clippy_perf_nov18, r=oli-obk 2022-11-19 11:54:46 +05:30
rustc_lint_defs Merge branch 'master' into patch-2 2022-11-15 21:16:11 +01:00
rustc_llvm Introduce composite debuginfo. 2022-11-15 17:53:50 +00:00
rustc_log
rustc_macros couple of clippy::perf fixes 2022-11-18 10:30:47 +01:00
rustc_metadata Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead 2022-11-17 07:42:27 +00:00
rustc_middle Rollup merge of #104593 - compiler-errors:rpitit-object-safety-spans, r=fee1-dead 2022-11-19 15:35:23 +01:00
rustc_mir_build Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead 2022-11-17 07:42:27 +00:00
rustc_mir_dataflow couple of clippy::perf fixes 2022-11-18 10:30:47 +01:00
rustc_mir_transform Rollup merge of #104411 - lcnr:bivariance-nll, r=compiler-errors 2022-11-19 11:54:44 +05:30
rustc_monomorphize Make "long type" printing type aware 2022-11-18 08:42:59 -08:00
rustc_parse Rollup merge of #104566 - matthiaskrgr:clippy_perf_nov18, r=oli-obk 2022-11-19 11:54:46 +05:30
rustc_parse_format shift no characters when using raw string literals 2022-11-15 14:28:20 +09:00
rustc_passes couple of clippy::perf fixes 2022-11-18 10:30:47 +01:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve Auto merge of #104573 - matthiaskrgr:rollup-k36ybtp, r=matthiaskrgr 2022-11-18 20:26:58 +00:00
rustc_save_analysis
rustc_serialize
rustc_session track_errors use a delay_span_bug 2022-11-18 13:25:17 +00:00
rustc_smir
rustc_span Rollup merge of #104497 - lyming2007:issue-104379-fix, r=fee1-dead 2022-11-19 15:35:21 +01:00
rustc_symbol_mangling
rustc_target Rollup merge of #104001 - Ayush1325:custom-entry, r=bjorn3 2022-11-19 11:54:43 +05:30
rustc_trait_selection Rollup merge of #104593 - compiler-errors:rpitit-object-safety-spans, r=fee1-dead 2022-11-19 15:35:23 +01:00
rustc_traits Convert predicates into Predicate in the Obligation constructor 2022-11-16 09:25:19 +00:00
rustc_transmute
rustc_ty_utils
rustc_type_ir