Skip to content

Vectors of resources are logged incorrectly by the shape glue #2614

Closed

Description

@msullivan

This program

resource mk(_x: int) { }

fn main() {
    let y = [mk(0), mk(1), mk(2), mk(3), mk(4)];
    log(error, y);
}

produces the following output:

rust: ~[res(0), res(, 1), res(, 2), res(, 3), res(, 4)]

Activity

  1. catamorphism commented on Nov 16, 2012

    @catamorphism
    Contributor

    No longer an issue; we don't have resources or shape glue, and the equivalent version with structs produces correct output.

  2. added a commit that references this issue on Jan 6, 2023
  3. added a commit that references this issue on Oct 27, 2025
  4. added a commit that references this issue on Dec 10, 2025
  5. added a commit that references this issue on Aug 21, 2026
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions