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

Wrong memory allocation for slices #91

Open
chungwong opened this issue Jul 4, 2023 · 2 comments
Open

Wrong memory allocation for slices #91

chungwong opened this issue Jul 4, 2023 · 2 comments

Comments

@chungwong
Copy link

fn main() {
  let x = &[(1, 0)]; // L1
}

It shows L1 is allocated on the heap which I believe it is wrong.

@ilyvion
Copy link

ilyvion commented Jul 4, 2023

Screenshot for context:
image

@willcrichton
Copy link
Collaborator

Yes, I believe this is the same issue as #75 where we need to add support for 'static references to rodata data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants