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

Cleaned up tests by bringing objects under mini_core into scope #639

Merged

Conversation

madhav-madhusoodanan
Copy link
Contributor

@madhav-madhusoodanan madhav-madhusoodanan commented Feb 26, 2025

Context

  1. I've cleaned up test files that did not reuse the mini_core library in example/mini_core.rs.

  2. I've updated example/mini_core.rs to bring in the Receiver trait and the implementations of Add, Sub and Mul for some more types that were required in the tests.

  3. Have added fn fflush and stdout to libc in mini_core.

Related Issue

@madhav-madhusoodanan madhav-madhusoodanan force-pushed the test_update_mini_core branch 4 times, most recently from 535d7e9 to 5686361 Compare February 26, 2025 19:18
@@ -588,70 +616,43 @@ pub union MaybeUninit<T> {

pub mod intrinsics {
#[rustc_intrinsic]
Copy link
Contributor Author

@madhav-madhusoodanan madhav-madhusoodanan Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antoyo is the #[rustc_nounwind] annotation needed for functions within the intrinsics module?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think so.

@madhav-madhusoodanan madhav-madhusoodanan changed the title [WIP] Cleaned up tests by bringing objects under mini_core into scope Cleaned up tests by bringing objects under mini_core into scope Feb 26, 2025
Copy link
Contributor

@antoyo antoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a few more stuff to clean up.
Apart from that, it looks good.
Thanks!

@antoyo antoyo merged commit 499de70 into rust-lang:master Mar 8, 2025
37 checks passed
@antoyo
Copy link
Contributor

antoyo commented Mar 8, 2025

Thanks a lot for your contribution!

@madhav-madhusoodanan
Copy link
Contributor Author

Thank you so much for taking the time to explain me why certain components (annotations, etc) needed to be removed!
I was able to learn a lot in this PR.

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

Successfully merging this pull request may close these issues.

2 participants