rust/compiler
Jubilee cfce3a919d
Rollup merge of #116296 - compiler-errors:default-return, r=estebank
More accurately point to where default return type should go

When getting the "default return type" span, instead of pointing to the low span of the next token, point to the high span of the previous token. This:

1. Makes forming return type suggestions more uniform, since we expect them all in the same place.
2. Arguably makes labels easier to understand, since we're pointing to where the implicit `-> ()` would've gone, rather than the starting brace or the semicolon.

r? ```@estebank```
2023-10-05 00:56:29 -07:00
..
rustc Split out the stable part of smir into its own crate to prevent accidental usage of forever unstable things 2023-09-25 14:38:27 +00:00
rustc_abi Name some local variables more consistently. 2023-10-02 09:12:47 +11:00
rustc_arena Remove the TypedArena::alloc_from_iter specialization. 2023-10-03 18:12:08 +11:00
rustc_ast Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_ast_lowering Auto merge of #116370 - nnethercote:more-arena-stuff, r=cjgillot 2023-10-04 22:32:46 +00:00
rustc_ast_passes Rollup merge of #116393 - compiler-errors:auto-bad, r=WaffleLapkin 2023-10-04 05:02:07 +02:00
rustc_ast_pretty Move let expression checking to parsing 2023-09-11 15:51:18 +00:00
rustc_attr Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_baked_icu_data Regen baked data 2023-05-02 10:45:16 -07:00
rustc_borrowck Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_builtin_macros Factor out the two entry_point_type functions. 2023-10-01 20:45:09 +11:00
rustc_codegen_cranelift Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_codegen_gcc Auto merge of #102099 - InnovativeInventor:re-cold-land, r=nikic 2023-10-02 22:02:12 +00:00
rustc_codegen_llvm Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_codegen_ssa Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_const_eval Auto merge of #116376 - matthiaskrgr:rollup-b3d14gq, r=matthiaskrgr 2023-10-03 11:49:06 +00:00
rustc_data_structures Rename cold_path to outline 2023-09-25 22:54:07 +02:00
rustc_driver Update rustix 2023-07-03 07:20:51 +00:00
rustc_driver_impl Auto merge of #115627 - compiler-errors:icedump-no-std, r=m-ou-se 2023-09-19 16:56:25 +00:00
rustc_error_codes Remove E0551. 2023-10-04 18:12:20 +11:00
rustc_error_messages Bump cfg(bootstrap) 2023-08-23 20:05:14 -04:00
rustc_errors Auto merge of #115690 - ShE3py:Z-treat-err-as-bug, r=petrochenkov 2023-09-22 13:01:30 +00:00
rustc_expand Enable incremental-relative-spans by default. 2023-09-07 20:21:13 +00:00
rustc_feature Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum 2023-10-01 05:56:47 +00:00
rustc_fluent_macro Factor out common token generation in fluent_messages. 2023-10-02 16:47:10 +11:00
rustc_fs_util Add try_canonicalize to rustc_fs_util and use it over fs::canonicalize 2023-03-16 21:50:23 +01:00
rustc_graphviz enable rust_2018_idioms for doctests 2023-05-07 00:12:29 +03:00
rustc_hir Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum 2023-10-01 05:56:47 +00:00
rustc_hir_analysis Rollup merge of #116296 - compiler-errors:default-return, r=estebank 2023-10-05 00:56:29 -07:00
rustc_hir_pretty Record asyncness span in HIR 2023-09-21 19:18:14 +00:00
rustc_hir_typeck Point to closure return instead of output if defaulted 2023-10-04 21:09:54 +00:00
rustc_incremental Don't use a thread to load the dep graph 2023-09-24 00:30:43 +02:00
rustc_index Auto merge of #115094 - Mark-Simulacrum:bootstrap-update, r=ozkanonur 2023-08-24 11:10:52 +00:00
rustc_infer Point to where missing return type should go 2023-10-04 21:09:54 +00:00
rustc_interface Don't use a thread to load the dep graph 2023-09-24 00:30:43 +02:00
rustc_lexer Update lexer emoji diagnostics to Unicode 15.0 2023-07-29 08:47:21 +08:00
rustc_lint Auto merge of #116184 - compiler-errors:afit-lint, r=tmandry 2023-10-05 01:14:25 +00:00
rustc_lint_defs Remove rustc_lint_defs::lint_array 2023-09-28 23:01:25 +02:00
rustc_llvm Remove unused features from rustc_llvm. 2023-10-03 15:54:44 +11:00
rustc_log Fix a comment. 2023-10-02 16:47:11 +11:00
rustc_macros Bump cfg(bootstrap) 2023-08-23 20:05:14 -04:00
rustc_metadata Don't store lazyness in DefKind 2023-09-26 02:53:59 +00:00
rustc_middle Auto merge of #116370 - nnethercote:more-arena-stuff, r=cjgillot 2023-10-04 22:32:46 +00:00
rustc_mir_build Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_mir_dataflow have better explanation for relate_types 2023-10-02 23:39:45 +03:00
rustc_mir_transform Auto merge of #115301 - Zalathar:regions-vec, r=davidtwco 2023-10-03 18:36:21 +00:00
rustc_monomorphize Rollup merge of #115863 - chenyukang:yukang-add-message-tidy-check, r=davidtwco 2023-10-03 12:24:11 +02:00
rustc_parse Point to where missing return type should go 2023-10-04 21:09:54 +00:00
rustc_parse_format Rollup merge of #115611 - lukas-code:format!("{r#ident}"), r=compiler-errors 2023-09-17 11:23:25 +00:00
rustc_passes Auto merge of #114417 - chinedufn:fix-expect-unused-in-impl-block-rust-issue-114416, r=cjgillot 2023-10-04 20:44:38 +00:00
rustc_plugin_impl Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
rustc_privacy Don't store lazyness in DefKind 2023-09-26 02:53:59 +00:00
rustc_query_impl Move DepKind to rustc_query_system and define it as u16 2023-09-21 17:06:14 +02:00
rustc_query_system Rollup merge of #115863 - chenyukang:yukang-add-message-tidy-check, r=davidtwco 2023-10-03 12:24:11 +02:00
rustc_resolve Rollup merge of #115863 - chenyukang:yukang-add-message-tidy-check, r=davidtwco 2023-10-03 12:24:11 +02:00
rustc_serialize Open the FileEncoder file for reading and writing 2023-09-22 16:13:25 -04:00
rustc_session Rollup merge of #115863 - chenyukang:yukang-add-message-tidy-check, r=davidtwco 2023-10-03 12:24:11 +02:00
rustc_smir remove unimplemented 2023-09-28 19:52:41 +03:00
rustc_span Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum 2023-10-01 05:56:47 +00:00
rustc_symbol_mangling Remove span from BrAnon. 2023-09-24 09:46:55 +00:00
rustc_target Fix broken links 2023-09-30 10:26:04 +08:00
rustc_trait_selection Auto merge of #116184 - compiler-errors:afit-lint, r=tmandry 2023-10-05 01:14:25 +00:00
rustc_traits Detect cycle errors hidden by opaques during monomorphization 2023-09-13 17:35:44 +00:00
rustc_transmute make the eval() functions on our const types return the resulting value 2023-09-13 07:29:34 +02:00
rustc_ty_utils Rollup merge of #116223 - catandcoder:master, r=cjgillot 2023-10-05 00:56:29 -07:00
rustc_type_ir Auto merge of #116069 - compiler-errors:debug-tuple, r=Nilstrieb 2023-09-24 15:16:18 +00:00
stable_mir Rollup merge of #116024 - ouz-a:smir_region, r=oli-obk 2023-09-29 22:27:50 +02:00