Skip to content

Commit

Permalink
docs: add details for cargo check pass where cargo build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Sep 5, 2020
1 parent e1d3e13 commit 2ca4393
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/doc/man/cargo-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Check a local package and all of its dependencies for errors. This will
essentially compile the packages without performing the final step of code
generation, which is faster than running `cargo build`. The compiler will save
metadata files to disk so that future runs will reuse them if the source has
not been modified.
not been modified. Some diagnostics and errors are only emitted during code
generation, so they inherently won't be reported with `cargo check`.

## OPTIONS

Expand Down
4 changes: 3 additions & 1 deletion src/doc/man/generated_txt/cargo-check.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ DESCRIPTION
essentially compile the packages without performing the final step of
code generation, which is faster than running cargo build. The compiler
will save metadata files to disk so that future runs will reuse them if
the source has not been modified.
the source has not been modified. Some diagnostics and errors are only
emitted during code generation, so they inherently won't be reported
with cargo check.

OPTIONS
Package Selection
Expand Down
3 changes: 2 additions & 1 deletion src/doc/src/commands/cargo-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Check a local package and all of its dependencies for errors. This will
essentially compile the packages without performing the final step of code
generation, which is faster than running `cargo build`. The compiler will save
metadata files to disk so that future runs will reuse them if the source has
not been modified.
not been modified. Some diagnostics and errors are only emitted during code
generation, so they inherently won't be reported with `cargo check`.

## OPTIONS

Expand Down
3 changes: 2 additions & 1 deletion src/etc/man/cargo-check.1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ Check a local package and all of its dependencies for errors. This will
essentially compile the packages without performing the final step of code
generation, which is faster than running \fBcargo build\fR\&. The compiler will save
metadata files to disk so that future runs will reuse them if the source has
not been modified.
not been modified. Some diagnostics and errors are only emitted during code
generation, so they inherently won't be reported with \fBcargo check\fR\&.
.SH "OPTIONS"
.SS "Package Selection"
By default, when no package selection options are given, the packages selected
Expand Down

0 comments on commit 2ca4393

Please sign in to comment.