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

CI: Rustツールチェーンを1.56.1へアップグレードする(2021エディション対応) #22

Closed
tatsuya6502 opened this issue Nov 3, 2021 · 1 comment · Fixed by #70
Assignees
Labels
p-mid 優先度:中
Milestone

Comments

@tatsuya6502
Copy link
Member

2021エディションの章を追加したところ、CIで mdbook test が失敗するようになってしまった。現在CIで使用しているRustツールチェーンが2021エディションに対応していないのが原因。1.56.1以降にアップグレードする必要がある。

#!/bin/bash -eo pipefail
mdbook test
...

--- stdout

running 1 test
test /tmp/mdbook-wjTpld/rust-2021/or-patterns-macro-rules.md - Or_patterns_in_macro_rules::Migration (line 54) ... FAILED

failures:

---- /tmp/mdbook-wjTpld/rust-2021/or-patterns-macro-rules.md - Or_patterns_in_macro_rules::Migration (line 54) stdout ----
error: invalid fragment specifier `pat_param`
  --> /tmp/mdbook-wjTpld/rust-2021/or-patterns-macro-rules.md:68:3
   |
16 |     ($x:pat_param | $y:pat) => { // <- this line is different
   |      ^^^^^^^^^^^^
   |
   = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`

error: aborting due to previous error

Couldn't compile the test.

failures:
    /tmp/mdbook-wjTpld/rust-2021/or-patterns-macro-rules.md - Or_patterns_in_macro_rules::Migration (line 54)

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


--- stderr

2021-11-03 05:43:15 [ERROR] (mdbook::utils): Error: One or more tests failed

Exited with code exit status 101
tatsuya6502 added a commit to tatsuya6502/edition-guide that referenced this issue Nov 3, 2021
@tatsuya6502
Copy link
Member Author

とりあえず #21 にて mdbook test コマンドをコメントアウトしました。本件の対応ができしだい元に戻します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p-mid 優先度:中
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant