From eaf3b66cb2bb4da13c9d2804a450bd5071cfd62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 30 Jul 2018 11:07:02 +0200 Subject: [PATCH] Require TemplateParameters to be Sized. To fix errors spawned since https://github.com/rust-lang/rust/issues/51443. --- src/ir/template.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ir/template.rs b/src/ir/template.rs index 61654fe888..14deb6c545 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; + fn self_template_params(&self, ctx: &BindgenContext) -> Vec; /// Get the number of free template parameters this template declaration /// has.