Skip to content

Conversation

@jmikedupont2
Copy link

@jmikedupont2 jmikedupont2 commented Nov 12, 2025

using a recent compiler nix rustc 1.92.0-nightly (839222065 2025-10-05) on nix with latest version of ron (because of base64 also breaking)

Compiling config v0.15.18 (/data/data/com.termux.nix/files/home/pick-up-nix2/vendor/nix/cargo2nix/vendor/config-rs)
error[E0599]: no variant or associated item named `Float` found for enum `ron::Number` in the current scope
  --> src/file/format/ron.rs:30:26
   |
30 |             ron::Number::Float(value) => ValueKind::Float(value.get()),
   |                          ^^^^^ variant or associated item not found in `ron::Number`

error[E0599]: no variant or associated item named `Integer` found for enum `ron::Number` in the current scope
  --> src/file/format/ron.rs:31:26
   |
31 |             ron::Number::Integer(value) => ValueKind::I64(value),
   |                          ^^^^^^^ variant or associated item not found in `ron::Number`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `config` (lib) due to 2 previous errors

@epage
Copy link
Contributor

epage commented Nov 12, 2025

This is titled "bugfix" but it isn't clear what the bug is. The change looks instead like an attempt at an upgrade but seems incomplete (since using a git dep).

Could you please clarify what is going on. Note that we generally ask for this to be done in an issue and get buy-in on a solution before posting a PR.

@jmikedupont2
Copy link
Author

jmikedupont2 commented Nov 12, 2025 via email

@jmikedupont2
Copy link
Author

see ron-rs/ron#590
and marshallpierce/rust-base64#290

/nix/store/k0db47fx7mdl8bajzhk05x8414gf5w03-rustc/bin/rustc --version
rustc 1.92.0-nightly (839222065 2025-10-05)

@jmikedupont2 jmikedupont2 changed the title bugfix bugfix : problems with compiling ron and base64 on nix rustc 1.92.0-nightly (839222065 2025-10-05) Nov 12, 2025
jmikedupont2 pushed a commit to meta-introspector/cargo2nix that referenced this pull request Nov 12, 2025
@epage
Copy link
Contributor

epage commented Nov 12, 2025

That is a warning, why does it matter?

@jmikedupont2
Copy link
Author

error[E0599]: no variant or associated item named Integer found for enum ron::Number in the current scope
--> src/file/format/ron.rs:31:26

This is an error :
error[E0599]: no variant or associated item named Integer found for enum ron::Number in the current scope
--> src/file/format/ron.rs:31:26

@jmikedupont2
Copy link
Author

So this works for me, it was blocking me, hopefullly it helps the next poor man down the line

@epage
Copy link
Contributor

epage commented Nov 12, 2025

I'm assuming that error isn't what you would see with our published packages but from upgrading to an incompatible version of ron to upgrade base64 to resolve a warning.

I'm asking why that warning in base64 that started this matters. It is a regular occurrence for rustc upgrades to show new lints. This isn't a dance that is practical to go through for every package everytime. Cargo actually silences warnings from dependencies through a "cap lint" feature in the compiler.

@jmikedupont2
Copy link
Author

jmikedupont2 commented Nov 12, 2025 via email

@epage epage closed this Nov 12, 2025
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.

2 participants