diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-07-30 11:07:02 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-07-30 11:23:54 +0200 |
commit | eaf3b66cb2bb4da13c9d2804a450bd5071cfd62b (patch) | |
tree | 01e4da853ef70f16197766882a329453efc70df6 /src | |
parent | cb8bfea157fb6e493ac508af73c9f153726cd9f7 (diff) |
Require TemplateParameters to be Sized.
To fix errors spawned since https://github.com/rust-lang/rust/issues/51443.
Diffstat (limited to 'src')
-rw-r--r-- | src/ir/template.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ir/template.rs b/src/ir/template.rs index 61654fe8..14deb6c5 100644 --- a/src/ir/template.rs +++ b/src/ir/template.rs @@ -99,7 +99,7 @@ use parse::ClangItemParser; /// ... |Wtf | ... | [T] | /// ... |Qux | ... | [] | /// ----+------+-----+----------------------+ -pub trait TemplateParameters { +pub trait TemplateParameters : Sized { /// Get the set of `ItemId`s that make up this template declaration's free /// template parameters. /// @@ -108,8 +108,7 @@ pub trait TemplateParameters { /// parameters. Of course, Rust does not allow generic parameters to be /// anything but types, so we must treat them as opaque, and avoid /// instantiating them. - fn self_template_params(&self, ctx: &BindgenContext) - -> Vec<TypeId>; + fn self_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId>; /// Get the number of free template parameters this template declaration /// has. |