Skip to content

Fix a few compilation errors #20526

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

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

der-teufel-programming
Copy link
Contributor

Fixes a few of the errors mentioned in #20505

@matklad
Copy link
Contributor

matklad commented Jul 8, 2024

Anyway we can prevent this from regressing? Perhaps its worthwhile to add "dummy" test just to get this stuff to compile?

@nektro
Copy link
Contributor

nektro commented Jul 8, 2024

_ = &foo.bar; in a test block should be sufficient

@andrewrk
Copy link
Member

andrewrk commented Jul 8, 2024

All these functions deserve actual test coverage

@@ -58,7 +58,7 @@ pub fn openFile(
return p.root_dir.handle.openFile(joined_path, flags);
}

pub fn makeOpenPath(p: Path, sub_path: []const u8, opts: fs.OpenDirOptions) !fs.Dir {
pub fn makeOpenPath(p: Path, sub_path: []const u8, opts: fs.Dir.OpenDirOptions) !fs.Dir {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pub fn makeOpenPath(p: Path, sub_path: []const u8, opts: fs.Dir.OpenDirOptions) !fs.Dir {
pub fn makeOpenPath(p: Path, sub_path: []const u8, opts: fs.Dir.OpenOptions) !fs.Dir {

https://ziglang.org/documentation/master/#Avoid-Redundant-Names-in-Fully-Qualified-Namespaces

@andrewrk andrewrk merged commit 89f1bfa into ziglang:master Jul 8, 2024
10 checks passed
@andrewrk
Copy link
Member

andrewrk commented Jul 8, 2024

Thanks

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.

4 participants