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

Crossplatform compatibility error #5854

Closed
macosinternals opened this issue Apr 12, 2013 · 4 comments
Closed

Crossplatform compatibility error #5854

macosinternals opened this issue Apr 12, 2013 · 4 comments

Comments

@macosinternals
Copy link

Take simple source:

fn main() {
io::println("Hellow world")
}

Compile it on Mac OS X 10.8 and run on Mac OS X 10.7.

Result:

Illegal instruction: 4

@astavonin
Copy link
Contributor

Same issue with Rust compiler. If it was built on 10.8 it'll crash on 10.7 with same message.

@Aatch
Copy link
Contributor

Aatch commented Jun 7, 2013

2 things: 1) Does this still happen? and if it does, 2) is this an actual issue? I mean unless you deliberately cross-compile it, this doesn't seem too strange to me.

@catamorphism
Copy link
Contributor

Not a bug; executables don't normally do anything sensible on a different target than the one they were compiled for.

@astavonin
Copy link
Contributor

Are you kidding? All OSX application can be compiled on one version of OS and be running on other one.

flip1995 pushed a commit to flip1995/rust that referenced this issue Aug 11, 2020
flip1995 added a commit to flip1995/rust that referenced this issue Aug 11, 2020
…flip1995

Lint .min(x).max(y) with x < y

Fixes  rust-lang#5854

changelog: Also lint `ord.min(a).max(b)`, where `a < b` in [`min_max`] lint
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

No branches or pull requests

4 participants