Skip to content

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

Merged
antoyo merged 1 commit into
rust-lang:masterfrom
madhav-madhusoodanan:test_update_mini_core
Mar 8, 2025
Merged

Cleaned up tests by bringing objects under mini_core into scope#639
antoyo merged 1 commit into
rust-lang:masterfrom
madhav-madhusoodanan:test_update_mini_core

Conversation

@madhav-madhusoodanan

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

Copy link
Copy Markdown
Contributor

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

Comment thread tests/run/abort1.rs Outdated
@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
Comment thread example/mini_core.rs
@@ -588,70 +616,43 @@ pub union MaybeUninit<T> {

pub mod intrinsics {
#[rustc_intrinsic]

@madhav-madhusoodanan madhav-madhusoodanan Feb 26, 2025

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

@antoyo antoyo left a comment

Copy link
Copy Markdown
Contributor

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!

Comment thread tests/run/abort1.rs Outdated
Comment thread tests/run/abort1.rs Outdated
@antoyo
antoyo merged commit 499de70 into rust-lang:master Mar 8, 2025
@antoyo

antoyo commented Mar 8, 2025

Copy link
Copy Markdown
Contributor

Thanks a lot for your contribution!

@madhav-madhusoodanan

Copy link
Copy Markdown
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