-
Notifications
You must be signed in to change notification settings - Fork 747
Map size_t to usize by default and check compatibility [Rebased] #2278
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
for name in (rg -lF addr_of! tests/expectations | sd '.*/(.*).rs' '$1') | ||
set path (fd --glob "$name.*" tests/headers) | ||
if test -n "$path" | ||
|
||
set flags (rg -F "// bindgen-flags" $path) | ||
if test -n "$flags" | ||
set minor (rg ".*\-\-rust\-target[ =]1.(\d+).*" $path -r '$1') | ||
if test -n "$minor" | ||
if test $minor -gt 47 | ||
echo $path needs to change the version from 1.$minor to 1.47 | ||
sd -s "1.$minor" "1.47" $path | ||
else | ||
echo $path uses version 1.$minor and that is fine | ||
end | ||
else | ||
echo $path does not have the `--rust-target` flag | ||
sd "// bindgen-flags: (.*)" '// bindgen-flags: --rust-target 1.47 $1' $path | ||
end | ||
else | ||
echo $path does not have the flags at all | ||
set contents (echo -e "// bindgen-flags: --rust-target 1.47\n"; cat $path) | ||
rm $path | ||
touch $path | ||
for line in $contents | ||
echo $line >> $path | ||
end | ||
end | ||
else | ||
echo $name headers not found | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the relevant values to the assertion error? Something like: