summaryrefslogtreecommitdiff
path: root/tests/headers/class_with_inner_struct.hpp
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-08-04 12:20:35 -0500
committerGitHub <noreply@github.com>2017-08-04 12:20:35 -0500
commitde180c42e52d6b9236a11ba887a6896b4ffae819 (patch)
treeca47cc6347b7d41e7ccc27d828d817ec0e9252d3 /tests/headers/class_with_inner_struct.hpp
parent04fdb10212e729f77343f8548db2f8fdf83a5af9 (diff)
parent0bb7b9f1c4652f63f41eba4064b79c044fd3d955 (diff)
Auto merge of #859 - tmfink:feature-832-custom-rust-target, r=fitzgen
Feature 832 custom rust target Addresses #832. Instead of specifying whether or not to use stable, specify the Rust release to support (one of several stable/beta releases or nightly). The `--unstable-rust` option is still accepted and implies `--rust-target nightly`. The definitions of `RustTarget` and `RustFeatures` are created with macros. In order to keep the test outputs the same, `bindgen-flags: --rust-target 1.0` was added to test headers. **Todo:** - [x] Create `RustFeatures`/`RustTarget` structs - [x] Replace uses of `unstable` with `RustFeatures` query - [x] Add new tests - [x] Fix doc comments TODOs
Diffstat (limited to 'tests/headers/class_with_inner_struct.hpp')
-rw-r--r--tests/headers/class_with_inner_struct.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/headers/class_with_inner_struct.hpp b/tests/headers/class_with_inner_struct.hpp
index ec729fe6..79a8b95b 100644
--- a/tests/headers/class_with_inner_struct.hpp
+++ b/tests/headers/class_with_inner_struct.hpp
@@ -1,5 +1,6 @@
// bindgen-flags: -- -std=c++11
+
class A {
unsigned c;
struct Segment { int begin, end; };