Skip to content
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

complete the tests for Compiler.jl as the stdlib. #56648

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

aviatesk
Copy link
Member

With #56632, Compiler.jl as the stdlib can now be tested. However, the PR was incomplete, and when tests are actually run on Compiler, which is !== Base.Compiler, various errors occur, including issues caused by #56647.

This commit resolves all these issues:

  • manage the code for loading Compiler in setup_Compiler.jl, ensuring that the stdlib version of Compiler is loaded when @activate Compiler is used beforehand
  • replace Base.IRShow with Compiler.IRShow
  • test Base.Compiler.return_type instead of Compiler.return_type

This was split off from #56636.

@aviatesk aviatesk requested a review from Keno November 22, 2024 06:14
Compiler/test/inference.jl Outdated Show resolved Hide resolved
With #56632, Compiler.jl as the stdlib can now be tested.
However, the PR was incomplete, and when tests are actually run on
`Compiler`, which is `!== Base.Compiler`, various errors occur,
including issues caused by #56647.

This commit resolves all these issues:
- manage the code for loading `Compiler` in `setup_Compiler.jl`,
  ensuring that the stdlib version of `Compiler` is loaded when
  `@activate Compiler` is used beforehand
- replace `Base.IRShow` with `Compiler.IRShow`
- test `Base.Compiler.return_type` instead of `Compiler.return_type`

This was split off from #56636.
@aviatesk aviatesk force-pushed the avi/fix-compilertests branch from 956549a to fa6ad79 Compare November 22, 2024 07:07
@aviatesk aviatesk merged commit 215189e into master Nov 22, 2024
5 of 7 checks passed
@aviatesk aviatesk deleted the avi/fix-compilertests branch November 22, 2024 08:41
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