1
Fork 0
rust/compiler/rustc_hir_analysis/src
Michael Howell 55ebb61c68
Rollup merge of #102650 - Rageking8:slightly-improve-no-return-for-returning-function-error, r=compiler-errors
Slightly improve no return for returning function error

Fixes #100607

The rationale is that absolute beginners will be slightly confused as to why certain lines of code in a function does not require a semicolon. (I have actually witness a beginner having this confusion). Hence, a slight rationale is added "to return this value", which signals to the user that after removing said semicolon the value is returned resolving that error.

However, if this is not desirable, I welcome any other suggestions. Thanks.
2022-10-04 20:45:13 -07:00
..
astconv Auto merge of #101986 - WaffleLapkin:move_lint_note_to_the_bottom, r=estebank 2022-10-01 10:44:25 +00:00
check Rollup merge of #102650 - Rageking8:slightly-improve-no-return-for-returning-function-error, r=compiler-errors 2022-10-04 20:45:13 -07:00
coherence Refactor rustc lint API 2022-10-01 10:03:06 +00:00
collect Refactor rustc lint API 2022-10-01 10:03:06 +00:00
impl_wf_check
outlives
structured_errors
variance
bounds.rs
check_unused.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00
collect.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00
constrained_generic_params.rs
errors.rs errors: rename typeck.ftl to hir_analysis.ftl 2022-10-03 13:52:17 +01:00
expr_use_visitor.rs
hir_wf_check.rs
impl_wf_check.rs
lib.rs Change feature name to is_some_and 2022-10-01 11:45:52 -05:00
mem_categorization.rs Shrink hir::def::Res. 2022-09-29 08:44:52 +10:00
structured_errors.rs