You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/unused-return-value-checker.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,10 +50,10 @@ You can control how the compiler reports ignored results with the `-Xreturn-valu
50
50
It has the following modes:
51
51
52
52
*`disable` disables the unused return value checker. (Default)
53
-
*`check` reports warnings for ignored results from [marked functions](#mark-functions-to-check-ignored-results).
54
-
*`full` treats all functions in your project as [marked](#mark-functions-to-check-ignored-results) and reports warnings for ignored results.
53
+
*`check`enables the checker, and reports warnings for ignored results from [marked functions](#mark-functions-to-check-ignored-results).
54
+
*`full`enables the checker, and treats all functions in your project as [marked](#mark-functions-to-check-ignored-results) and reports warnings for ignored results.
55
55
56
-
> When you set `-Xreturn-value-checker` to `check` or `full`, the checker also reports ignored results from marked functions in library dependencies.
56
+
> All marked functions are propagated as such, and ignored results are reported if the checker is enabled in projects that use your code as a dependency.
0 commit comments