mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-20 11:43:04 +00:00
Depend on getopts from crates.io
rustc_session exports it for other crates to avoid mismatching crate versions.
This commit is contained in:
parent
45ede927fb
commit
ac2b84f962
@ -4201,6 +4201,7 @@ dependencies = [
|
||||
name = "rustc_session"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"getopts",
|
||||
"log",
|
||||
"num_cpus",
|
||||
"rustc_ast",
|
||||
|
@ -8,7 +8,6 @@
|
||||
#![feature(nll)]
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
pub extern crate getopts;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[macro_use]
|
||||
@ -35,6 +34,7 @@ use rustc_save_analysis::DumpHandler;
|
||||
use rustc_serialize::json::{self, ToJson};
|
||||
use rustc_session::config::nightly_options;
|
||||
use rustc_session::config::{ErrorOutputType, Input, OutputType, PrintRequest};
|
||||
use rustc_session::getopts;
|
||||
use rustc_session::lint::{Lint, LintId};
|
||||
use rustc_session::{config, DiagnosticOutput, Session};
|
||||
use rustc_session::{early_error, early_warn};
|
||||
|
@ -1,5 +1,3 @@
|
||||
extern crate getopts;
|
||||
|
||||
use crate::interface::parse_cfgspecs;
|
||||
|
||||
use rustc_data_structures::fx::FxHashSet;
|
||||
@ -9,6 +7,7 @@ use rustc_session::config::{build_configuration, build_session_options, to_crate
|
||||
use rustc_session::config::{rustc_optgroups, ErrorOutputType, ExternLocation, Options, Passes};
|
||||
use rustc_session::config::{ExternEntry, LinkerPluginLto, LtoCli, SwitchWithOptPath};
|
||||
use rustc_session::config::{Externs, OutputType, OutputTypes, SymbolManglingVersion};
|
||||
use rustc_session::getopts;
|
||||
use rustc_session::lint::Level;
|
||||
use rustc_session::search_paths::SearchPath;
|
||||
use rustc_session::{build_session, Session};
|
||||
|
@ -9,6 +9,7 @@ name = "rustc_session"
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
getopts = "0.2"
|
||||
log = "0.4"
|
||||
rustc_errors = { path = "../librustc_errors" }
|
||||
rustc_feature = { path = "../librustc_feature" }
|
||||
|
@ -1,10 +1,4 @@
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(test)]
|
||||
|
||||
// Use the test crate here so we depend on getopts through it. This allow tools to link to both
|
||||
// librustc_session and libtest.
|
||||
extern crate getopts;
|
||||
extern crate test as _;
|
||||
|
||||
pub mod cgu_reuse_tracker;
|
||||
pub mod utils;
|
||||
@ -23,3 +17,5 @@ mod session;
|
||||
pub use session::*;
|
||||
|
||||
pub mod output;
|
||||
|
||||
pub use getopts;
|
||||
|
@ -10,6 +10,7 @@ use rustc_session::config::{
|
||||
nightly_options,
|
||||
};
|
||||
use rustc_session::config::{CodegenOptions, DebuggingOptions, ErrorOutputType, Externs};
|
||||
use rustc_session::getopts;
|
||||
use rustc_session::lint::Level;
|
||||
use rustc_session::search_paths::SearchPath;
|
||||
use rustc_span::edition::{Edition, DEFAULT_EDITION};
|
||||
|
@ -15,7 +15,6 @@
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
extern crate env_logger;
|
||||
extern crate getopts;
|
||||
extern crate rustc_ast;
|
||||
extern crate rustc_ast_pretty;
|
||||
extern crate rustc_attr;
|
||||
@ -51,6 +50,7 @@ use std::panic;
|
||||
use std::process;
|
||||
|
||||
use rustc_session::config::{make_crate_type_option, ErrorOutputType, RustcOptGroup};
|
||||
use rustc_session::getopts;
|
||||
use rustc_session::{early_error, early_warn};
|
||||
|
||||
#[macro_use]
|
||||
|
Loading…
Reference in New Issue
Block a user