-
Notifications
You must be signed in to change notification settings - Fork 111
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
Align spinoso-string#make_binary to be more alike the String#b #1824
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I'd love to see one additional assert in the doc tests now that we're cloning the bytes
@lopopolo I believe it's unrelated to this specific change, but am I correct in assuming we can't actually check anything with relation to encoding on the Specifically, trying to test this above change like so:
^-- not what I was expecting, and dug into |
Yea Artichoke does have an I should file some tickets. |
Would you believe that Documentation Workflow error run can't be reproduced locally? ➜ artichoke git:(make-binary-to-binary) rustup -Vv
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.58.1 (db9d1b20b 2022-01-20)`
➜ artichoke git:(make-binary-to-binary) rustc -Vv
rustc 1.58.1 (db9d1b20b 2022-01-20)
binary: rustc
commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b
commit-date: 2022-01-20
host: x86_64-unknown-linux-gnu
release: 1.58.1
LLVM version: 13.0.0
➜ artichoke git:(make-binary-to-binary) cargo version --verbose
cargo 1.58.0 (f01b232bc 2022-01-19)
release: 1.58.0
commit-hash: f01b232bc7f4d94f0c4603930a5a96277715eb8c
commit-date: 2022-01-19
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1l)
os: Ubuntu 20.04 (focal) [64-bit] And |
Oh sorry I ran into this in #1753 too. The current nightly rust doc has an ICE in spinoso-array. It's fixed in master. I'll run the workflow again tonight when the next nightly is out. |
In case you are curious about this and how Artichoke uses nightly Rust, this command uses whatever version of nightly you happen to have installed. The breakage is only on the current nightly though, which you can get by running
artichoke/artichoke-core/src/lib.rs Lines 14 to 19 in 19ff1ef
Lines 14 to 15 in 19ff1ef
In CI, Artichoke uses nightly for the fuzz workflows because:
In CI, Artichoke uses nightly for the rustdoc workflow and for |
new nightly is out, I rebuilt the docs workflow and build is green. we're ready to merge |
Fixes #1720
As talked about in the issue, the implementation in spinoso-string can be a little confusing when looking at how it is implemented in artichoke-backend. Specifically, spinoso-string is changing the encoding, however
String#b
is actually cloning the String before actually changing, so we might as well just do this directly and return a new value.