Skip to content

Fix a few compilation errors#20526

Merged
andrewrk merged 4 commits intoziglang:masterfrom
der-teufel-programming:fix-comp-errs
Jul 8, 2024
Merged

Fix a few compilation errors#20526
andrewrk merged 4 commits intoziglang:masterfrom
der-teufel-programming:fix-comp-errs

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

}

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
@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