Skip to content

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

Closed

Description

@msullivan

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.

Activity

  1. eholk commented on Jun 18, 2012

    @eholk
    Contributor

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

  2. catamorphism commented on Nov 24, 2012

    @catamorphism
    Contributor

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

  3. added a commit that references this issue on Nov 6, 2022
  4. added a commit that references this issue on Jan 6, 2023
  5. added a commit that references this issue on Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions