rustc_driver_impl: remove some old dead logic
This commit is contained in:
parent
6199b69c53
commit
aa1f60ecff
@ -61,7 +61,6 @@
|
|||||||
use rustc_session::output::collect_crate_types;
|
use rustc_session::output::collect_crate_types;
|
||||||
use rustc_session::{config, filesearch, EarlyDiagCtxt, Session};
|
use rustc_session::{config, filesearch, EarlyDiagCtxt, Session};
|
||||||
use rustc_span::source_map::FileLoader;
|
use rustc_span::source_map::FileLoader;
|
||||||
use rustc_span::symbol::sym;
|
|
||||||
use rustc_span::FileName;
|
use rustc_span::FileName;
|
||||||
use rustc_target::json::ToJson;
|
use rustc_target::json::ToJson;
|
||||||
use rustc_target::spec::{Target, TargetTriple};
|
use rustc_target::spec::{Target, TargetTriple};
|
||||||
@ -777,16 +776,8 @@ fn print_crate_info(
|
|||||||
.config
|
.config
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|&(name, value)| {
|
.filter_map(|&(name, value)| {
|
||||||
// Note that crt-static is a specially recognized cfg
|
// On stable, exclude unstable flags.
|
||||||
// directive that's printed out here as part of
|
if !sess.is_nightly_build()
|
||||||
// rust-lang/rust#37406, but in general the
|
|
||||||
// `target_feature` cfg is gated under
|
|
||||||
// rust-lang/rust#29717. For now this is just
|
|
||||||
// specifically allowing the crt-static cfg and that's
|
|
||||||
// it, this is intended to get into Cargo and then go
|
|
||||||
// through to build scripts.
|
|
||||||
if (name != sym::target_feature || value != Some(sym::crt_dash_static))
|
|
||||||
&& !sess.is_nightly_build()
|
|
||||||
&& find_gated_cfg(|cfg_sym| cfg_sym == name).is_some()
|
&& find_gated_cfg(|cfg_sym| cfg_sym == name).is_some()
|
||||||
{
|
{
|
||||||
return None;
|
return None;
|
||||||
|
Loading…
Reference in New Issue
Block a user