]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #37636 - karpinski:issue-34915, r=nikomatsakis
authorEduard-Mihai Burtescu <edy.burt@gmail.com>
Wed, 9 Nov 2016 18:51:19 +0000 (20:51 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Nov 2016 18:51:19 +0000 (20:51 +0200)
Marking the 'no-stack-check' codegen option as deprecated (Issue #34915)

Attempts to finish resolving issue #34915. Based on pull request #35156, which was closed due to inactivity.

1  2 
src/librustc_driver/lib.rs

index 6ddbce7dc72abcaf7d2ac08b5cb17fd0d88cb9fc,2699682fb3023b972dca1396cfd421061adf6f61..6551bad3bc92edc730e6a4d7a9dba098419a7453
@@@ -24,7 -24,7 +24,7 @@@
  #![cfg_attr(not(stage0), deny(warnings))]
  
  #![feature(box_syntax)]
 -#![feature(dotdot_in_tuple_patterns)]
 +#![cfg_attr(stage0, feature(dotdot_in_tuple_patterns))]
  #![feature(libc)]
  #![feature(quote)]
  #![feature(rustc_diagnostic_macros)]
@@@ -75,7 -75,7 +75,7 @@@ use rustc::dep_graph::DepGraph
  use rustc::session::{self, config, Session, build_session, CompileResult};
  use rustc::session::config::{Input, PrintRequest, OutputType, ErrorOutputType};
  use rustc::session::config::nightly_options;
- use rustc::session::early_error;
+ use rustc::session::{early_error, early_warn};
  use rustc::lint::Lint;
  use rustc::lint;
  use rustc_metadata::locator;
@@@ -1011,6 -1011,11 +1011,11 @@@ pub fn handle_options(args: &[String]) 
          return None;
      }
  
+     if cg_flags.iter().any(|x| *x == "no-stack-check") {
+         early_warn(ErrorOutputType::default(),
+                    "the --no-stack-check flag is deprecated and does nothing");
+     }
      if cg_flags.contains(&"passes=list".to_string()) {
          unsafe {
              ::llvm::LLVMRustPrintPasses();