rust/compiler
bors 4652f5eb25 Auto merge of #100865 - compiler-errors:parent-substs-still, r=cjgillot
Don't drop parent substs when we have no generic parameters in `create_substs_for_ast_path`

This bug is being shadowed by an explicit check for `generics.params.is_empty()` in the only parent caller that could trigger it (`create_substs_for_associated_item`). I triggered it on another branch where I'm messing around with astconv stuff.

Also, the second commit simplifies `create_substs_for_associated_item`. Removing that explicit check I mentioned above^ and also the special case call to `Astconv::prohibit_generics` causes the UI test `src/test/ui/structs/struct-path-associated-type.stderr` to change, but I think that it's clearer now. The suggestion to remove the generics is actually useful.
2022-09-25 12:00:37 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #93628 - est31:stabilize_let_else, r=joshtriplett 2022-09-17 15:31:06 +05:30
rustc_ast_lowering separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_ast_passes Improve the help message for an invalid calling convention 2022-09-22 22:18:30 +02:00
rustc_ast_pretty make mk_attr_id part of ParseSess 2022-09-14 08:49:10 +08:00
rustc_attr FIX - adopt new Diagnostic naming in newly migrated modules 2022-09-21 11:43:22 -04:00
rustc_borrowck separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_builtin_macros UPDATE - rename DiagnosticHandler macro to Diagnostic 2022-09-21 11:39:53 -04:00
rustc_codegen_cranelift rename Unevaluated to UnevaluatedConst 2022-09-23 14:27:34 +02:00
rustc_codegen_gcc
rustc_codegen_llvm Use LLVM C-API to build atomic cmpxchg and fence 2022-09-18 16:01:57 -07:00
rustc_codegen_ssa Rollup merge of #101598 - chriswailes:sanitizers, r=nagisa,eholk 2022-09-22 18:25:51 +05:30
rustc_const_eval Auto merge of #102056 - b-naber:unevaluated, r=lcnr 2022-09-23 13:39:11 +00:00
rustc_data_structures Rollup merge of #102037 - jyn514:normalize-docs, r=lcnr 2022-09-22 18:25:53 +05:30
rustc_driver separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_error_codes
rustc_error_messages Auto merge of #102165 - matthiaskrgr:rollup-n5oquhe, r=matthiaskrgr 2022-09-23 09:33:23 +00:00
rustc_errors Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk" 2022-09-22 19:36:11 +02:00
rustc_expand FIX - adopt new Diagnostic naming in newly migrated modules 2022-09-21 11:43:22 -04:00
rustc_feature Rollup merge of #100734 - ComputerDruid:afit_feature, r=compiler-errors 2022-09-23 04:29:15 +02:00
rustc_fs_util
rustc_graphviz
rustc_hir separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_hir_pretty Handle generic parameters. 2022-09-09 01:31:46 +00:00
rustc_incremental separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_index Only enable the let_else feature on bootstrap 2022-09-15 21:06:45 +02:00
rustc_infer Rollup merge of #102016 - lcnr:given-OutlivesEnvironment, r=jackh726 2022-09-25 09:32:07 +02:00
rustc_interface separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_lexer remove unnecessary PartialOrd and Ord 2022-09-08 06:15:33 +09:00
rustc_lint separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_lint_defs Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk" 2022-09-22 19:36:11 +02:00
rustc_llvm Use LLVM C-API to build atomic cmpxchg and fence 2022-09-18 16:01:57 -07:00
rustc_log
rustc_macros FIX - adopt new Diagnostic naming in newly migrated modules 2022-09-21 11:43:22 -04:00
rustc_metadata separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_middle Auto merge of #102040 - TaKO8Ki:separate-definitions-and-hir-owners, r=cjgillot 2022-09-24 22:42:07 +00:00
rustc_mir_build rename Unevaluated to UnevaluatedConst 2022-09-23 14:27:34 +02:00
rustc_mir_dataflow UPDATE - rename DiagnosticHandler macro to Diagnostic 2022-09-21 11:39:53 -04:00
rustc_mir_transform rename Unevaluated to UnevaluatedConst 2022-09-23 14:27:34 +02:00
rustc_monomorphize separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_parse FIX - adopt new Diagnostic naming in newly migrated modules 2022-09-21 11:43:22 -04:00
rustc_parse_format
rustc_passes separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_plugin_impl UPDATE - rename DiagnosticHandler macro to Diagnostic 2022-09-21 11:39:53 -04:00
rustc_privacy separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_query_impl separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_query_system separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_resolve Rollup merge of #102161 - compiler-errors:issue-102138, r=tmandry 2022-09-25 09:32:08 +02:00
rustc_save_analysis separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_serialize Rollup merge of #101014 - isikkema:fix-zmeta-stats-file-encoder-no-read-perms, r=isikkema 2022-09-20 10:12:57 -07:00
rustc_session Improve the help message for an invalid calling convention 2022-09-22 22:18:30 +02:00
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span Rollup merge of #100734 - ComputerDruid:afit_feature, r=compiler-errors 2022-09-23 04:29:15 +02:00
rustc_symbol_mangling separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_target Auto merge of #102165 - matthiaskrgr:rollup-n5oquhe, r=matthiaskrgr 2022-09-23 09:33:23 +00:00
rustc_trait_selection Rollup merge of #102016 - lcnr:given-OutlivesEnvironment, r=jackh726 2022-09-25 09:32:07 +02:00
rustc_traits Rollup merge of #102016 - lcnr:given-OutlivesEnvironment, r=jackh726 2022-09-25 09:32:07 +02:00
rustc_transmute rustc_transmute: fix big-endian discriminants 2022-09-20 13:03:43 -07:00
rustc_ty_utils separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
rustc_type_ir Address code review comments 2022-09-13 14:50:12 -07:00
rustc_typeck Auto merge of #100865 - compiler-errors:parent-substs-still, r=cjgillot 2022-09-25 12:00:37 +00:00