Skip to content

Rust Petstore server failure in Travis CI #389

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

Closed
wing328 opened this issue Jun 25, 2018 · 1 comment · Fixed by #395
Closed

Rust Petstore server failure in Travis CI #389

wing328 opened this issue Jun 25, 2018 · 1 comment · Fixed by #395

Comments

@wing328
Copy link
Member

wing328 commented Jun 25, 2018

Description

There's no change to the Rust petstore server samples but recently it started failing with the following errors:

   Compiling petstore_api v1.0.0 (file:///home/travis/build/OpenAPITools/openapi-generator/samples/server/petstore/rust-server)
error: lint unused_doc_comment has been renamed to unused_doc_comments
 --> examples/server_lib/mod.rs:6:5
  |
6 |     error_chain!{}
  |     ^^^^^^^^^^^^^^
  |
  = note: `-D renamed-and-removed-lints` implied by `-D warnings`
  = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: lint unused_doc_comment has been renamed to unused_doc_comments
 --> examples/server_lib/mod.rs:6:5
  |
6 |     error_chain!{}
  |     ^^^^^^^^^^^^^^
  |
  = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: lint unused_doc_comment has been renamed to unused_doc_comments
 --> examples/server_lib/mod.rs:6:5
  |
6 |     error_chain!{}
  |     ^^^^^^^^^^^^^^
  |
  = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: lint unused_doc_comment has been renamed to unused_doc_comments
 --> examples/server_lib/mod.rs:6:5
  |
6 |     error_chain!{}
  |     ^^^^^^^^^^^^^^
  |
  = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 4 previous errors

error: Could not compile `petstore_api`.
warning: build failed, waiting for other jobs to finish...

cc @frol @farcaller @bjgill

openapi-generator version

Latest master

Related issues/PRs

#379

Suggest a fix/enhancement

I've not looked into the details but maybe we should freeze the version used in the Travis CI tests for the time being.

@bjgill
Copy link
Contributor

bjgill commented Jun 25, 2018

Ah. We've been hit by rust-lang-deprecated/error-chain#245. The fix will be to upgrade to the latest version of error-chain. It's fully back-compatible, so I should be able to attend to it within the next few hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants