Skip to content

Commit

Permalink
Require TemplateParameters to be Sized.
Browse files Browse the repository at this point in the history
To fix errors spawned since rust-lang/rust#51443.
  • Loading branch information
emilio committed Jul 30, 2018
1 parent cb8bfea commit eaf3b66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ir/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand All @@ -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.
Expand Down

0 comments on commit eaf3b66

Please sign in to comment.