charon_driver/frontend/types/
mod.rs1mod adt;
2mod def_id;
3mod mir;
4mod new;
5mod predicates;
6mod traits;
7mod ty;
8mod vars;
9
10pub use adt::*;
11pub use def_id::*;
12pub use mir::*;
13pub use new::*;
14pub use predicates::*;
15pub use traits::*;
16pub use ty::*;
17pub use vars::*;
18
19use crate::frontend::prelude::*;
20
21sinto_reexport!(rustc_span::Span);
22
23pub use rustc_span::Spanned;
24impl<'s, S: UnderOwnerState<'s>, T: SInto<S, U>, U> SInto<S, Spanned<U>> for Spanned<T> {
25 fn sinto<'a>(&self, s: &S) -> Spanned<U> {
26 Spanned {
27 node: self.node.sinto(s),
28 span: self.span,
29 }
30 }
31}
32
33pub type Ident = (Symbol, Span);
35impl<'tcx, S: BaseState<'tcx>> SInto<S, Ident> for rustc_span::symbol::Ident {
36 fn sinto(&self, s: &S) -> Ident {
37 (self.name.sinto(s), self.span.sinto(s))
38 }
39}