summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-02The stylo sanity test should use `blacklist_type`Nick Fitzgerald
...instead of the deprecated `hide_type`.
2017-11-02Blacklisting docs should reference `blacklist_type` methodNick Fitzgerald
...instead of the deprecated `hide_type` method.
2017-11-02Auto merge of #1136 - fitzgen:pragma-pack-bandaid, r=emiliobors-servo
Detect `#pragma pack(...)` and make `pack(n)` where `n > 1` opaque This is a bandaid for #537. It does *not* fix the underlying issue, which requires `#[repr(packed = "N")]` support in Rust. However, it does make sure that we don't generate type definitions with the wrong layout, or fail our generated layout tests. r? @emilio or @pepyakin
2017-11-02Detect `#pragma pack(...)` and make `pack(n)` where `n > 1` opaqueNick Fitzgerald
This is a bandaid for #537. It does *not* fix the underlying issue, which requires `#[repr(packed = "N")]` support in Rust. However, it does make sure that we don't generate type definitions with the wrong layout, or fail our generated layout tests.
2017-11-01Auto merge of #1137 - fitzgen:divide-by-zero-in-struct-layout, r=emiliobors-servo
Divide by zero in struct layout See commit messages for details. r? @emilio or @pepyakin
2017-11-01"Alignment of field" -> "Offset of field"Nick Fitzgerald
It isn't checking alignment at all; it's checking offsets.
2017-11-01Avoid divide-by-zero when checking if a field will merge with bitfieldsNick Fitzgerald
2017-11-01Auto merge of #1135 - fitzgen:changelog, r=pepyakinbors-servo
Add a changelog It is initially populated with information from our release announcements. It has an "unreleased" section for accumulating notable changes that haven't been released yet, and to make it easier to summarize releases when we do publish them. Fixes #1131 r? @emilio or @pepyakin
2017-11-01Add a changelogNick Fitzgerald
It is initially populated with information from our release announcements. It has an "unreleased" section for accumulating notable changes that haven't been released yet, and to make it easier to summarize releases when we do publish them. Fixes #1131
2017-11-01Auto merge of #1134 - fitzgen:actually-cleanup-temp-files-in-predicate, ↵bors-servo
r=pepyakin Actually cleanup temp files in predicate Embarrassingly, we were ignoring and swallowing a dumb reference error that prevented the temp files from ever getting cleaned up. The good news: with ignoring bitfields and packed structs, I got to `driver.py` iteration 27145 without triggering any `bindgen` bugs, and then the disk got full! :-p r? @pepyakin
2017-11-01predicate.py: warn about ignored exceptions during temp clean upNick Fitzgerald
2017-11-01predicate.py: Fix reference error that prevented temp file deletionNick Fitzgerald
2017-11-01Auto merge of #1130 - fitzgen:issue-1076, r=pepyakinbors-servo
Unnamed bit-fields and alignment r? @pepyakin or @emilio
2017-10-31Unnamed bit-fields should not affect alignmentNick Fitzgerald
According to the x86[-64] ABI spec: "Unnamed bit-fields’ types do not affect the alignment of a structure or union". This makes sense: such bit-fields are only used for padding, and we can't perform an un-aligned read of something we can't read because we can't even name it. Fixes #1076
2017-10-31Remove unused assignmentNick Fitzgerald
2017-10-31Auto merge of #1128 - emilio:not-yet-type, r=fitzgenbors-servo
ir: We can't guarantee the type to be in the item map while propagating AlreadyResolved The item may come from a recursive check down the stack, and as we say there: > Unchecked because we haven't finished this type yet. Fixes #1127
2017-10-31Bugfix version bump.Emilio Cobos Álvarez
2017-10-31ir: We can't guarantee the type to be in the item map while propagating ↵Emilio Cobos Álvarez
AlreadyResolved. The item may come from a recursive check down the stack, and as we say there: > Unchecked because we haven't finished this type yet. Fixes #1127
2017-10-30Auto merge of #1119 - pepyakin:derive-partialeq-partialord-refactoring, r=emiliobors-servo
Simple refactoring of derive_partialeq_or_partialord Just simple refactoring with some tricks from https://github.com/rust-lang-nursery/rust-bindgen/pull/1102 r? @fitzgen
2017-10-30Refactor derive_partialeq_or_partialord.Sergey Pepyakin
2017-10-30Auto merge of #1126 - emilio:b, r=pepyakinbors-servo
Minor version bump. Again, just fixes, and I got FF to build with #1124.
2017-10-30Minor version bump.Emilio Cobos Álvarez
2017-10-30Auto merge of #1124 - emilio:templatedecl-eager-resolve, r=pepyakinbors-servo
ir: Don't eagerly-resolve template alias declarations. Fixes #1118
2017-10-30ir: Don't eagerly-resolve template alias declarations.Emilio Cobos Álvarez
Fixes #1118
2017-10-30Auto merge of #1123 - photoszzt:fix_mangle_name, r=pepyakinbors-servo
Need mangle name of fields in struct for impl debug Fix #1122 r? @fitzgen or @emilio or @pepyakin
2017-10-30Need mangle name of fields in struct for impl debugZhiting Zhu
2017-10-29Rename derive_partialeq_or_partialordSergey Pepyakin
2017-10-28Auto merge of #1115 - emilio:bumpit, r=pepyakinbors-servo
Minor version bump. Only bugfixes have landed since the last release (#1112 and #1114), apart from doc fixes.
2017-10-28Minor version bump.v0.31.1Emilio Cobos Álvarez
Only bugfixes have landed since the last release (#1112 and #1114), apart from doc fixes.
2017-10-28Auto merge of #1114 - emilio:template-params-ref, r=pepyakinbors-servo
ir: References have no implicit template parameters. Fixes #1113.
2017-10-28Auto merge of #1112 - emilio:always-gen, r=pepyakinbors-servo
lib: Always generate bindings. Some cases in spawning rustfmt were not properly returning the source. Make it more reliable. This hit me when trying to update bindgen in Firefox.
2017-10-28ir: References have no implicit template parameters.Emilio Cobos Álvarez
Fixes #1113.
2017-10-28lib: Always generate bindings.Emilio Cobos Álvarez
Some cases in spawning rustfmt were not properly returning the source. Make it more reliable. This hit me when trying to update bindgen in Firefox.
2017-10-27Auto merge of #992 - treiff:fix-link-references-in-book, r=fitzgenbors-servo
Fix whitelisting documentation links in book. While working on #990 depreciated the `whitelisted_function` I noticed a couple of links in the book that also should be updated to refer to the updated methods. @fitzgen one question here, I assume I will also need to update the version number within the url as new documentation won't be built until the next release?
2017-10-27Auto merge of #1109 - fitzgen:rustfmt-stdout, r=fitzgenbors-servo
lib: rustfmt output to stdout *(Recreated + slightly touched up version of #1042 + a version bump)* Simplify the rustfmt and write mechanism. Use rustfmt generated string to allow writing to stdout or to rustfmt a file.
2017-10-27Bump to version 0.31.0Nick Fitzgerald
2017-10-27lib: rustfmt output to stdoutManas Karekar
Simplify the rustfmt and write mechanism. Use rustfmt generated string to allow writing to stdout or to rustfmt a file.
2017-10-27Auto merge of #1108 - hallfox:no-copy-name-patch, r=emiliobors-servo
give better variable name Fixing up a comment from #1105
2017-10-26give better variable nameTaylor Foxhall
2017-10-26Auto merge of #1105 - seemyvest:issue-964, r=seemyvestbors-servo
Add --no-hash <regex> flag Issue #964 - [x] Adding a new RegexSet member to bindgen::Builder (similar to the whitelisted_types set). - [x] A Builder method to add strings to that RegexSet. - [x] Plumbing in src/options.rs to convert --no-hash <regex> CLI flags into invocations of the builder method. - [x] Making the MonotoneFramework::constrain function in src/ir/analysis/derive_hash.rs check if the given item is explicitly marked not to be Hash, and if so, inserting it into the self.cannot_derive_hash set via return self.insert(id). - [x] Tests! - [x] When the no-hash type is transitively referenced by a whitelisted item - [x] When the no-hash type is explicitly whitelisted - [x] When the no-hash type is marked opaque r? @fitzgen
2017-10-27Add --no-hash <regex> flagseemyvest
2017-10-26Auto merge of #1107 - fitzgen:rustfmt-expectations, r=fitzgenbors-servo
Tell `rustfmt` to shut up about long lines in comments in test expectations
2017-10-26Tell `rustfmt` to shut up about long lines in comments in test expectationsNick Fitzgerald
2017-10-26Auto merge of #1099 - hallfox:no-copy, r=fitzgenbors-servo
Resolve #962 - implement --no-copy with tests Allows types to not have the copy trait automatically derived.
2017-10-25delete empty lines, update book with no_copy usageTaylor Foxhall
2017-10-25Auto merge of #1102 - fitzgen:sizedness, r=pepyakinbors-servo
Compute sizedness with a fixed-point analysis This fixes a couple bugs where we weren't properly adding an `_address` byte. It also helps pave the way for computing implicit fields (such as padding, `_address`, vtable pointers, etc) in its own pass, before codegen. Fixes #768 r? @pepyakin
2017-10-25Sanity tests for zero-sized and flexible arraysNick Fitzgerald
2017-10-25Add a couple sanity tests for zero sized typesNick Fitzgerald
2017-10-25Compute sizedness with a fixed-point analysisNick Fitzgerald
This fixes a couple bugs where we weren't properly adding an `_address` byte. It also helps pave the way for computing implicit fields (such as padding, `_address`, vtable pointers, etc) in its own pass, before codegen. Fixes #768
2017-10-25Auto merge of #1103 - fitzgen:creduce-backup-ignore, r=emiliobors-servo
Ignore C-Reduce's backup files r? @pepyakin