diff options
| author | kennytm <kennytm@gmail.com> | 2018-09-07 13:47:10 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-09-07 15:26:40 +0800 |
| commit | 1805f3c2fba620b60930ba2cdf642e2e035c2b70 (patch) | |
| tree | 84833d127e7afb6ed547578cc58b3b62c0fb66ef /src/doc | |
| parent | 3f2de03daa410e963cfa8d2cff46a7766ec972d3 (diff) | |
| parent | f4d6362518432ff7a26339cdef83e29e4ae6e7d1 (diff) | |
| download | rust-1805f3c2fba620b60930ba2cdf642e2e035c2b70.tar.gz rust-1805f3c2fba620b60930ba2cdf642e2e035c2b70.zip | |
Rollup merge of #53550 - brson:recurring, r=estebank
librustc_lint: In recursion warning, change 'recurring' to 'recursing' The existing wording seems incorrect. Aside: This warning, 'function cannot return without recursing' is not perfectly clear - it implies that the function _can_ return, it's just got to recurse. But really the fn cannot return period. Clearer wording: 'function recurses infinitely; it cannot return'; or 'function is infinitely self-recursive; it cannot return, and this is probably an error'. I like that.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustc/src/lints/listing/warn-by-default.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/lints/listing/warn-by-default.md b/src/doc/rustc/src/lints/listing/warn-by-default.md index b49708ff6ad..de76ddf33c1 100644 --- a/src/doc/rustc/src/lints/listing/warn-by-default.md +++ b/src/doc/rustc/src/lints/listing/warn-by-default.md @@ -603,11 +603,11 @@ fn foo() { This will produce: ```text -warning: function cannot return without recurring +warning: function cannot return without recursing --> src/main.rs:1:1 | 1 | fn foo() { - | ^^^^^^^^ cannot return without recurring + | ^^^^^^^^ cannot return without recursing 2 | foo(); | ----- recursive call site | |
