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

unknown lang item i32 #1896

Closed
Tracked by #1898 ...
philberty opened this issue Feb 21, 2023 · 4 comments · Fixed by #1970
Closed
Tracked by #1898 ...

unknown lang item i32 #1896

philberty opened this issue Feb 21, 2023 · 4 comments · Fixed by #1970

Comments

@philberty
Copy link
Member

I tried this code:

#[lang = "i32"]
impl i32 {}

I expected to see this happen: compile without error

Instead, this happened:

test.rs:12:3: error: unknown lang item
   12 | #[lang = "i32"]
      |   ^~~~

Meta

  • What version of Rust GCC were you using, git sha if possible. 87e7c9d
@philberty
Copy link
Member Author

The fix here should add the list of i32, i16 etc

@philberty philberty mentioned this issue Feb 21, 2023
41 tasks
@SainiAditya1
Copy link
Contributor

@CohenArthur I want to work on this issue..

@powerboat9
Copy link
Contributor

rust-lang/rust@afbecc0

It looks like rustc stopped handling this a while ago, but "a while ago" would be after libcore 1.49.

@powerboat9
Copy link
Contributor

#1494

@github-project-automation github-project-automation bot moved this from Additional sprint items to Done in libcore 1.49 Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants