diff --git a/naga/src/front/mod.rs b/naga/src/front/mod.rs index e1f99452e1..8dc0416607 100644 --- a/naga/src/front/mod.rs +++ b/naga/src/front/mod.rs @@ -268,10 +268,10 @@ where /// the current scope to the root scope, returning `Some` when a variable is /// found or `None` if there doesn't exist a variable with `name` in any /// scope. - pub fn lookup(&self, name: &Q) -> Option<&Var> + pub fn lookup(&self, name: &Q) -> Option<&Var> where Name: std::borrow::Borrow, - Q: std::hash::Hash + Eq, + Q: std::hash::Hash + Eq + ?Sized, { // Iterate backwards trough the scopes and try to find the variable for scope in self.scopes[..self.cursor].iter().rev() {