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

gitoxide: Use updated nightly to fix serde error #12512

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

EliahKagan
Copy link
Contributor

@EliahKagan EliahKagan commented Sep 18, 2024

Since around Byron/gitoxide#1536, fuzzing is broken for gitoxide due to an error related to serde. As shown there and in Byron/gitoxide#1596, the error is:

error[E0658]: `#[diagnostic]` attribute name space is experimental
   --> /rust/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/de/mod.rs:536:5
    |
536 |     diagnostic::on_unimplemented(
    |     ^^^^^^^^^^
    |
    = note: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information
    = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
    = note: this compiler was built on 2024-02-11; consider upgrading it if it is out of date

Since rust-lang/rust#111996 is closed as completed, and similar errors appear to have been fixed in oss-fuzz for other projects by using the latest nightly toolchain, this makes the same change for gitoxide as was made in:

See also:

cc @Byron

Copy link

EliahKagan is a new contributor to projects/gitoxide. The PR must be approved by known contributors before it can be merged. The past contributors are: alexcrichton, silvergasp, Byron

Since around Byron/gitoxide#1536, fuzzing
is broken for `gitoxide` due to an error related to `serde`. As
shown there and in Byron/gitoxide#1596, the
error is:

    error[E0658]: `#[diagnostic]` attribute name space is experimental
       --> /rust/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.210/src/de/mod.rs:536:5
        |
    536 |     diagnostic::on_unimplemented(
        |     ^^^^^^^^^^
        |
        = note: see issue #111996 <rust-lang/rust#111996> for more information
        = help: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable
        = note: this compiler was built on 2024-02-11; consider upgrading it if it is out of date

Since rust-lang/rust#111996 is closed as
completed, and similar errors appear to have been fixed in oss-fuzz
for other projects by using the latest nightly toolchain, this
makes the same change for `gitoxide` as was made in:

- google#12404 for `starlark-rust`
- google#12409 for `rhai`

See also :

- google#12410
- serde-rs/serde#2770
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request Sep 18, 2024
…ml`"

This reverts commit aafa8b1, since
fuzzing doesn't use locked dependencies, so that's not a fix. See:

- Byron#1596 (comment)
- google/oss-fuzz#12512
@DavidKorczynski DavidKorczynski merged commit a06f052 into google:master Sep 18, 2024
15 checks passed
@EliahKagan EliahKagan deleted the fix-gitoxide branch September 18, 2024 19:16
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request Sep 18, 2024
…ml`"

This reverts commit aafa8b1, since
fuzzing doesn't use locked dependencies, so that's not a fix. See:

- Byron#1596 (comment)
- google/oss-fuzz#12512
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request Sep 18, 2024
…ml`"

This reverts commit aafa8b1, since
fuzzing doesn't use locked dependencies, so that's not a fix. See:

- Byron#1596 (comment)
- google/oss-fuzz#12512, which does fix it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants