-
Notifications
You must be signed in to change notification settings - Fork 250
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
Add is
and as
support for std::expected
(v2)
#971
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you may have accidentally moved the built-in as
code section.
@bluetarpmedia i will take a look after a decision on how to implement is and as functions. #701 (comment) |
Thanks, restored now! |
Sorry for the lag one this. I think this in in pri-5, at least in part because I'm not sure if this PR has fallen behind the other is/as cleanup that was merged this summer (my fault, sorry). Do you want to refresh this PR and it might move to pri-3? |
Hi! Do you want to pursue this now? Also as described in #1322, this didn't make release 0.8, so I will need a new one-time CLA that will cover all your future contributions. I've emailed you the new CLA, and one it's completed I can look at PRs. |
98e2b9b
to
afc1b10
Compare
I've made a change to the CI This is because there are two macOS configurations which share the same expected results directory (to avoid duplication), since up to now their results have been identical. However, I've added a new
and
One option would be to stop sharing the expected results directory, but that seemed wasteful since it's only 1 test file which produces a different result, and this test doesn't even compile (as expected). So it didn't seem necessary to me to verify the diagnostic since other compiler configs do that already. However, please let me know if you prefer the duplication or a different solution instead of using this new filtering exclusion method. FYI @jarzec |
There are 2 I've seen this happen before with #1198 Here's the diff:
GCC generates some kind of counter for the |
b698747
to
25f5c9e
Compare
Thanks! I've checked self-build and the first part of regression tests (building the I'm thinking that it would be best to rebase this -- could you do that please? |
…es that it doesn't want to run There are 2 macOS test configs which share the same expected results directory (to avoid duplication). This works great except for the new `pure2-expected-is-as` test. This new test code fails to compile (as expected) on both compilers, but produces a slightly different error diagnostic because the path is different. E.g. /Applications/Xcode_14.3.1.app/...etc.../math.h and /Library/Developer/CommandLineTools/...etc.../math.h One option would be to stop sharing the expected results for both of these compilers, but that seems wasteful since it's just one test which fails to compile. So instead the `run-tests` script has a new way to exclude a test from running.
25f5c9e
to
64e1121
Compare
Sure thing, I've rebased it now. Not sure what was going on with those missing files you mentioned. If you still have problems maybe try deleting your local |
In fact there is a way to ignore diff chunks with given patterns - git has an option for that and the scripts exposes that. This was used in the past for similar issues with MSVC. |
Given that you modified a header file all the test include I cam not surprised some internal numbering changed. I am no expert in in the internals of GCC, but I would say it is safe to accept those changes if the numbering is stable between runs. |
cpp2util.h
to supportis
andas
forstd::expected
pure2-expected-is-as
regression testThis replaces the original PR #954; I couldn't successfully rebase it onto the updated changes in
main
so I gave up and created a new PR!CC @filipsajdak
EDIT - The
macOS
build job is a spurious failure (not found for compiler: 'clang++'
). I'm not sure why this happens but I've seen it a few times now. I don't have permission to retry the job in this repo, but in my own fork I just retry the job and it succeeds.EDIT 2 - See PR #972 for the spurious macOS job failure