#![feature(rustc_private)]
#![cfg_attr(doc, doc = include_str!("../README.md"))]
extern crate rustc_ast;
extern crate rustc_data_structures;
extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_feature;
extern crate rustc_hir;
extern crate rustc_interface;
extern crate rustc_lexer;
extern crate rustc_lint;
extern crate rustc_lint_defs;
extern crate rustc_middle;
extern crate rustc_parse;
extern crate rustc_passes;
extern crate rustc_session;
extern crate rustc_span;
mod ast;
mod cargo;
mod hir;
mod lint;
pub use ast::with_ast_parser;
pub use cargo::{cargo_integration, get_supported_rustc_version};
pub use hir::with_tyctxt;
pub use lint::with_lints;
pub enum Error<E> {
Parser(String),
Other(E),
}
pub fn lexer(source_code: &str) -> rustc_lexer::Cursor<'_> {
rustc_lexer::Cursor::new(source_code)
}