Skip to content

Conversation

@RalfJung
Copy link

@RalfJung RalfJung commented Nov 13, 2025

poll_fns has been fixed.

And as for that runtime.rs test: when the main thread is done, Miri gives the other threads a chance to finish before reporting a leak. At least in local testing, that seems to be enough for this test.

We can also remove the -Zmiri-retag-fields flag; it has been the default for more than 2 years already.

@RalfJung RalfJung force-pushed the miri-tests branch 2 times, most recently from 94fc155 to 9587d78 Compare November 13, 2025 08:33
@RalfJung
Copy link
Author

RalfJung commented Nov 13, 2025

poll_fns failed... does this not use the latest nightly?

EDIT: Ah, I found where I have to bump it.

working-directory: tokio
env:
MIRIFLAGS: -Zmiri-disable-isolation -Zmiri-strict-provenance -Zmiri-retag-fields
MIRIFLAGS: -Zmiri-disable-isolation -Zmiri-strict-provenance
Copy link
Contributor

Choose a reason for hiding this comment

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

You are removing the retag fields argument?

Copy link
Author

@RalfJung RalfJung Nov 13, 2025

Choose a reason for hiding this comment

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

As explained in the commit message, -Zmiri-retag-fields is the default (and has been the default for a long time already): rust-lang/miri#2985.


#[cfg(not(miri))]
#[cfg(not(miri))] // takes a really long time with miri
mod task_combinations;
Copy link
Author

Choose a reason for hiding this comment

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

Interestingly, there's cfg!(miri) logic inside this module, even though the module is disabled on Miri anyway...

Copy link
Contributor

Choose a reason for hiding this comment

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

I probably ran it under miri when I wrote the test.

@ADD-SP ADD-SP added A-ci Area: The continuous integration setup C-maintenance Category: PRs that clean code up or issues documenting cleanup. labels Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci Area: The continuous integration setup C-maintenance Category: PRs that clean code up or issues documenting cleanup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants