Repository navigation
Conversation
|
Any special-casing of Miri in the standard library requires review. cc @rust-lang/miri |
|
|
|
@bors try |
This comment has been minimized.
This comment has been minimized.
std: use skip_missing_miri_shims to control when tests should be skipped in Miri due to missing shims try-job: test-x86_64-gnu-aux
43cd0c6 to
ce7f68a
Compare
|
I'm pretty okay with this, @rust-lang/libs-ping any thoughts? See the Zulip discussion linked in the top post for context |
ce7f68a to
4d659d1
Compare
This comment has been minimized.
This comment has been minimized.
4d659d1 to
f08ee20
Compare
| /// Converts a `BorrowedFd` into a reference to a file-like type. | ||
| /// | ||
| #[cfg_attr(all(unix, not(miri)), doc = "```")] | ||
| #[cfg_attr(unix, doc = "```")] |
This comment has been minimized.
This comment has been minimized.
f08ee20 to
5439f19
Compare
5439f19 to
3aee2ea
Compare
This comment has been minimized.
This comment has been minimized.
3aee2ea to
573f710
Compare
This comment has been minimized.
This comment has been minimized.
It's been a week -- seems like nobody has major concerns? |
573f710 to
11aad14
Compare
|
Yeah I'd rather split that into a separate PR (or |
6fb626d to
3092c5a
Compare
|
r? infra |
Are you not comfortable because you don't understand what the diff does, or because you don't feel "in charge"?
I split out most of that change. |
3092c5a to
d4c13db
Compare
This. I don't undestand what
Oh, I didn't see that. Yeah that file is fine |
Usually bootstrap complains when you use
Well... I am asking libs to please say that it should be fine. :) |
|
Hmm, alright, I think this should be fine then. Sorry I tend to compensate inexperience with thoroughness here ^^ @bors r+ Just one more question:
If we have unsupported doctests, that implies to me that we're not running them (otherwise CI would fail). So why does disabling them reduce coverage? |
Completely fine. :) I still remember how overwhelmed and insecure I was when I reviewed the first PRs here.
Before this PR we filter tests in the makefile, that's the |
…ts should be skipped in Miri due to missing shims
d4c13db to
3cf3c87
Compare
|
This pull request was unapproved. |
|
Fixed the commit message. |
Yikes. I thought there was no way those cfgs were enough to cover that. If we come up with a way to make the doctest filtering work in-file, can we enable them again? |
Yes. Also FWIW at least on Linux we can actually run almost all doctests. (Many in Full list of doctests that fail: |
|
I'll look into that ^^ |
View all comments
We currently run some subset of std tests in Miri, skipping some because Miri doesn't support the operations they need. That is based on filters in the makefile. People don't know what is actually being tested and add random
cfg(miri)in places to disable tests that were never run. This makes it quite hard to track which tests are being skipped and which operations we should add in Miri to get 100% std coverage. So let's replace that string-based filter with a cfg flag,skip_unsupported_miri_tests, that can be annotated at the tests.Unfortunately I can't figure out how to disable all doctests in a module based on a cfg flag, so this entirely disables std doctests being run in Miri in our CI. (We still run them in https://github.com/rust-lang/miri-test-libstd.)
See prior discussion on Zulip.
Docs PR: rust-lang/std-dev-guide#86
r? @tgross35
try-job: test-x86_64-gnu-aux