Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Doc-tests failed in raw_curp/log.rs #876

Closed
1 task done
lxl66566 opened this issue Jul 8, 2024 · 1 comment · Fixed by #877
Closed
1 task done

[Bug]: Doc-tests failed in raw_curp/log.rs #876

lxl66566 opened this issue Jul 8, 2024 · 1 comment · Fixed by #877
Labels
bug Something isn't working

Comments

@lxl66566
Copy link
Collaborator

lxl66566 commented Jul 8, 2024

Description about the bug

reproduce: cargo test -p curp --doc

Version

0.6.1 (Default)

Relevant log output

running 1 test
test crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86) ... FAILED

failures:

---- crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86) stdout ----
error: unknown start of token: \u{2191}
 --> crates/curp/src/server/raw_curp/log.rs:87:1
  |
3 || ^

error: unknown start of token: `
 --> crates/curp/src/server/raw_curp/log.rs:88:19
  |
4 |                   `first_idx_in_cur_batch`
  |                   ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
4 |                   'first_idx_in_cur_batch`
  |                   ~

error: unknown start of token: `
 --> crates/curp/src/server/raw_curp/log.rs:88:42
  |
4 |                   `first_idx_in_cur_batch`
  |                                          ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
4 |                   `first_idx_in_cur_batch'
  |                                          ~

error[E0425]: cannot find value `first_idx_in_cur_batch` in this scope
 --> crates/curp/src/server/raw_curp/log.rs:88:20
  |
4 |                   `first_idx_in_cur_batch`
  |                    ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86)

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s

error: doctest failed, to rerun pass `-p curp --doc`

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lxl66566 lxl66566 added the bug Something isn't working label Jul 8, 2024
Copy link

github-actions bot commented Jul 8, 2024

👋 Thanks for opening this issue!

Reply with the following command on its own line to get help or engage:

  • /contributing-agreement : to print Contributing Agreements.
  • /assignme : to assign this issue to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant