/src/librustc_borrowck/lib.rs

https://gitlab.com/pranith/rust · Rust · 45 lines · 25 code · 8 blank · 12 comment · 0 complexity · 5ddee89fc457e6189d81653e7d553379 MD5 · raw file

  1. // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
  2. // file at the top-level directory of this distribution and at
  3. // http://rust-lang.org/COPYRIGHT.
  4. //
  5. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  6. // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  7. // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  8. // option. This file may not be copied, modified, or distributed
  9. // except according to those terms.
  10. // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
  11. #![cfg_attr(stage0, feature(custom_attribute))]
  12. #![crate_name = "rustc_borrowck"]
  13. #![unstable(feature = "rustc_private")]
  14. #![staged_api]
  15. #![crate_type = "dylib"]
  16. #![crate_type = "rlib"]
  17. #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  18. html_favicon_url = "http://www.rust-lang.org/favicon.ico",
  19. html_root_url = "http://doc.rust-lang.org/nightly/")]
  20. #![allow(non_camel_case_types)]
  21. #![feature(quote)]
  22. #![feature(rustc_diagnostic_macros)]
  23. #![feature(rustc_private)]
  24. #![feature(staged_api)]
  25. #![feature(unsafe_destructor)]
  26. #![feature(into_cow)]
  27. #[macro_use] extern crate log;
  28. #[macro_use] extern crate syntax;
  29. // for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
  30. // refers to the borrowck-specific graphviz adapter traits.
  31. extern crate graphviz as dot;
  32. extern crate rustc;
  33. pub use borrowck::check_crate;
  34. pub use borrowck::build_borrowck_dataflow_data_for_fn;
  35. pub use borrowck::FnPartsWithCFG;
  36. mod borrowck;
  37. pub mod graphviz;