Rust build differs between server and locally

I have a case where my code build clean locally but seems to fail on the server (I am behind a firewall so I run the git interface). It is very rust specific but I get the error:
“error[E0369]: binary operation == cannot be applied to type ExitCode
remote: [compile] → src/lib.rs:114:47
remote: [compile] |
remote: [compile] 114 | if error_handler.error_code() == ExitCode::SUCCESS {
remote: [compile] | -------------------------- ^^ ----------------- ExitCode
remote: [compile] | |
remote: [compile] | ExitCode
remote: [compile] |
remote: [compile] note: the foreign item type ExitCode doesn’t implement PartialEq
remote: [compile] → /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/process.rs:1981:1
remote: [compile] |
remote: [compile] = note: not implement PartialEq
But according to what I can read ExitCode should implement the PartialEq trait and it works on my computer.
Is the rust compiler on codecrafters modified in some way, or an old version?

I’ll take a look and get back to you by the end of the week.

Give me a holler if you need some more information. I can work around the problem but I got a bit curious on why it happened.

@Dyr-El Sorry for the delayed response!

We’ve upgraded to Rust v1.85, and I’ve updated your repo accordingly. You can pull the changes to use the latest version.

Could you confirm if you’re still experiencing the same issue?

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.