fn insert_meta(&mut self, span: Span, meta: CompileMeta) -> Result<(), QueryError> {
        let item = meta.item.item.clone();

        self.visitor.register_meta(&meta);

        if let Some(existing) = self.meta.insert(item, meta.clone()) {
            return Err(QueryError::new(
                span,
                QueryErrorKind::MetaConflict {
                    current: meta,
                    existing,
                },
            ));
        }

        Ok(())
    }
/// Insert meta without registering peripherals under the assumption that it
/// already has been registered.
Insert meta without registering peripherals under the assumption that it
already has been registered.
Insert meta without registering peripherals under the assumption that it already has been registered .
fn insert_meta(&mut self, span: Span, meta: CompileMeta) -> Result<(), QueryError> {
        let item = meta.item.item.clone();
        self.visitor.register_meta(&meta);
        if let Some(existing) = self.meta.insert(item, meta.clone()) {
            return Err(QueryError::new(
                span,
                QueryErrorKind::MetaConflict {
                    current: meta,
                    existing,
                },
            ));
        }
        Ok(())
    }
fn insert_meta ( & mut self , span : Span , meta : CompileMeta ) -> Result < ( ) , QueryError > { let item = meta . item . item . clone ( ) ; self . visitor . register_meta ( & meta ) ; if let Some ( existing ) = self . meta . insert ( item , meta . clone ( ) ) { return Err ( QueryError :: new ( span , QueryErrorKind :: MetaConflict { current : meta , existing , } , ) ) ; } Ok ( ( ) ) }
Insert meta without registering peripherals under the assumption that it
already has been registered.
Insert meta without registering peripherals under the assumption that it already has been registered .
&mut self
span
Span
meta
CompileMeta
&mut self
span
Span
meta
CompileMeta