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

v/checker: Warn if unsafe method called outside unsafe block #5863

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

ntrel
Copy link
Contributor

@ntrel ntrel commented Jul 17, 2020

Also mark ustring.free as unsafe.
Unsafe functions are not checked yet.

@ntrel ntrel marked this pull request as ready for review July 17, 2020 15:41
@ntrel
Copy link
Contributor Author

ntrel commented Jul 17, 2020

I assume the windows-tcc test failure is unrelated:

FAIL  [ 55/220]   280.876 ms vlib\os\inode_test.v
testsuite_begin, tfolder = C:\Users\RUNNER~1\AppData\Local\Temp\v\tests\inode_test

D:\\a\\v\\v\\vlib\\os\\inode_test.v:16: failed assert in function testsuite_begin
Source  : `main.os.is_dir(main.tfolder)`

@medvednikov medvednikov merged commit 105a0e0 into vlang:master Jul 17, 2020
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