Skip to content

Commit

Permalink
minor edits to support (a tiny bit of vec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjit Jhala committed Dec 18, 2023
1 parent fe9d5bb commit 322fc98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/flux-middle/src/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ impl<'tcx> Queries<'tcx> {
pub(crate) fn generics_of(
&self,
genv: &GlobalEnv,
def_id0: DefId,
def_id: DefId,
) -> QueryResult<rty::Generics> {
run_with_cache(&self.generics_of, def_id0, || {
let def_id = genv.lookup_extern(def_id0).unwrap_or(def_id0);
run_with_cache(&self.generics_of, def_id, || {
let def_id = genv.lookup_extern(def_id).unwrap_or(def_id);
if let Some(local_id) = def_id.as_local() {
(self.providers.generics_of)(genv, local_id)
} else {
Expand Down

0 comments on commit 322fc98

Please sign in to comment.