You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A useless cast in device.salam is error E093, so no program importing net/tun builds for Windows. With the cast removed, x86_64-w64-windows-gnu builds link again (checked with salam check --check-std and a full cross build using a compiler from main, and with 0.7.1).
Summary by CodeRabbit
Release Notes
No end-user-visible changes are included in this update.
This change removes a cast that blocked Windows builds of programs importing net/tun. It has no identified behavioral impact and a very small footprint, so merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "net/tun: fix the Windows build" matches the main change. The PR removes a useless cast in the Windows _dev_read wait call in std/net/tun/device.salam, which the author says triggers error E…
Description check
The description covers the problem and the fix clearly. It explains that the useless cast causes error E093, that the cast removal restores x86_64-w64-windows-gnu builds, and how the author checked th…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "net/tun: fix the Windows build" matches the main change. The PR removes a useless cast in the Windows _dev_read wait call in std/net/tun/device.salam, which the author says triggers error E093 and stops programs that import net/tun from building for Windows. The title names the module and the platform, and it states the goal of the fix. It does not name the specific cast removal, but that detail is not required.
Full details: Description check
Explanation
The description covers the problem and the fix clearly. It explains that the useless cast causes error E093, that the cast removal restores x86_64-w64-windows-gnu builds, and how the author checked the change (salam check --check-std, a cross build from main, and a build with 0.7.1). It is missing several template sections: Related Issue, a formal Proposed Changes list, a How Was This Tested section with commands, Additional Notes, and most of the checklist. The testing information exists but is not in the template's format. These gaps are non-critical for a one-line fix, so the description is mostly complete.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 395f1587-65a1-460a-85fb-28c51767a166
Commits
Reviewing files that changed from the base of the PR and between 1d1e634 and d85bd1e.
Files selected for processing: 1
std/net/tun/device.salam
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A useless cast in
device.salamis error E093, so no program importingnet/tunbuilds for Windows. With the cast removed,x86_64-w64-windows-gnubuilds link again (checked withsalam check --check-stdand a full cross build using a compiler from main, and with 0.7.1).Summary by CodeRabbit