Skip to content

intrinsic-test: Minor fixes (2025-05) #1813

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
May 31, 2025

Conversation

a4lg
Copy link
Contributor

@a4lg a4lg commented May 30, 2025

This is built on #1812.

While I'm making #1812, I found two likely bugs in the crate intrinsic-test.

  1. Some type names for Arm were not created correctly (because it used rust_prefix where c_prefix is necessary).
  2. has_constraints() worked opposite to the behavior as implied by the name (i.e. returns true if there's no constraints).

What's strange is, those changes did not affect CI and I doubt that CI does not use all tests generated by intrinsic-test.

@rustbot
Copy link
Collaborator

rustbot commented May 30, 2025

r? @Amanieu

rustbot has assigned @Amanieu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@a4lg a4lg changed the title intrinsic-test: Fix minor errors (2025-05) intrinsic-test: Minor fixes (2025-05) May 30, 2025
Copy link
Member

@Amanieu Amanieu left a comment

Choose a reason for hiding this comment

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

LGTM once #1812 lands

@a4lg a4lg force-pushed the intrinsic-test-minor-fixes-202505 branch from 5ad8ff9 to a399d3a Compare May 31, 2025 05:10
a4lg added 2 commits May 31, 2025 10:31
To make the type names to test correct, this commit replaces occurrences
of `rust_prefix` to `c_prefix` where necessary.
It seems it returns true when *no* constraints are found, opposite to
the expected behavior of the function name.

This commit reverses condition as the name suggests.
@a4lg a4lg force-pushed the intrinsic-test-minor-fixes-202505 branch from a399d3a to f89ef97 Compare May 31, 2025 10:31
@a4lg
Copy link
Contributor Author

a4lg commented May 31, 2025

After #1812 is merged, it's rebased on the latest master.

@Amanieu Amanieu added this pull request to the merge queue May 31, 2025
Merged via the queue into rust-lang:master with commit 2601c6f May 31, 2025
62 checks passed
@a4lg a4lg deleted the intrinsic-test-minor-fixes-202505 branch May 31, 2025 12:24
@adamgemmell
Copy link
Contributor

@madhav-madhusoodanan I would have expected this to have broken CI too - something's masking failures here

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

Successfully merging this pull request may close these issues.

4 participants