Skip to content

Commit eaf3b66

Browse files
committed
Require TemplateParameters to be Sized.
To fix errors spawned since rust-lang/rust#51443.
1 parent cb8bfea commit eaf3b66

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ir/template.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ use parse::ClangItemParser;
9999
/// ... |Wtf | ... | [T] |
100100
/// ... |Qux | ... | [] |
101101
/// ----+------+-----+----------------------+
102-
pub trait TemplateParameters {
102+
pub trait TemplateParameters : Sized {
103103
/// Get the set of `ItemId`s that make up this template declaration's free
104104
/// template parameters.
105105
///
@@ -108,8 +108,7 @@ pub trait TemplateParameters {
108108
/// parameters. Of course, Rust does not allow generic parameters to be
109109
/// anything but types, so we must treat them as opaque, and avoid
110110
/// instantiating them.
111-
fn self_template_params(&self, ctx: &BindgenContext)
112-
-> Vec<TypeId>;
111+
fn self_template_params(&self, ctx: &BindgenContext) -> Vec<TypeId>;
113112

114113
/// Get the number of free template parameters this template declaration
115114
/// has.

0 commit comments

Comments
 (0)