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

main's argument vector can't be logged or compared properly #2639

Closed
msullivan opened this issue Jun 18, 2012 · 2 comments
Closed

main's argument vector can't be logged or compared properly #2639

msullivan opened this issue Jun 18, 2012 · 2 comments
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

Comments

@msullivan
Copy link
Contributor

Since I changed shape glue to treat vectors as boxes containing an unboxed vector, glue operations don't work on the vector main is given. This is because the runtime doesn't now how to construct a type descriptor to put in the box, so the shape glue gives up. This would also happen for other arrays returned by the runtime, like the environment.

The ideal solution might be to not ever need to build rust vectors from the C++ runtime code, but the straightforward solution is for the runtime to have hardcoded type descriptors for the vectors it creates.

@ghost ghost assigned msullivan Jun 18, 2012
@eholk
Copy link
Contributor

eholk commented Jun 18, 2012

Could we build the args vector using crust functions in libcore?

@catamorphism
Copy link
Contributor

main no longer takes an argument vector, yay! Closing.

RalfJung pushed a commit to RalfJung/rust that referenced this issue Nov 6, 2022
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
Projects
None yet
Development

No branches or pull requests

3 participants