pub use hygiene::{DesugaringKind, ExpnData, ExpnId, ExpnKind, ForLoopLoc, MacroKind};
pub mod def_id;
use def_id::{CrateNum, DefId, LOCAL_CRATE};
+pub mod lev_distance;
mod span_encoding;
pub use span_encoding::{Span, DUMMY_SP};
impl ExternalSource {
pub fn is_absent(&self) -> bool {
- match self {
- ExternalSource::Foreign { kind: ExternalSourceKind::Present(_), .. } => false,
- _ => true,
- }
+ !matches!(self, ExternalSource::Foreign { kind: ExternalSourceKind::Present(_), .. })
}
pub fn get_source(&self) -> Option<&Lrc<String>> {