diff options
| author | bors <bors@rust-lang.org> | 2016-05-12 19:52:51 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-05-12 19:52:51 -0700 |
| commit | 01ed700640c36fef719027d8baec9ddb5ef04df5 (patch) | |
| tree | 3b85c963e88c632ff9fbc1dad711375d495dfd8d /src/test | |
| parent | 4ec5ce5e44823c29d4f641f764e53d57e8b28a6a (diff) | |
| parent | 215b2603f1a4a1f82e8a454addf36f104742b147 (diff) | |
| download | rust-01ed700640c36fef719027d8baec9ddb5ef04df5.tar.gz rust-01ed700640c36fef719027d8baec9ddb5ef04df5.zip | |
Auto merge of #33450 - SiegeLord:dep_info_no_analysis, r=nrc
Make --emit dep-info work correctly with -Z no-analysis again. Previously, it would attempt to resolve some external crates that weren't necessary for dep-info output. Fixes #33231.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-make/dep-info-no-analysis/Makefile | 6 | ||||
| -rw-r--r-- | src/test/run-make/dep-info-no-analysis/input.dd | 3 | ||||
| -rw-r--r-- | src/test/run-make/dep-info-no-analysis/input.rs | 14 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/test/run-make/dep-info-no-analysis/Makefile b/src/test/run-make/dep-info-no-analysis/Makefile new file mode 100644 index 00000000000..5d2cfadfd02 --- /dev/null +++ b/src/test/run-make/dep-info-no-analysis/Makefile @@ -0,0 +1,6 @@ +-include ../tools.mk + +all: + $(RUSTC) -o $(TMPDIR)/input.dd -Z no-analysis --emit dep-info input.rs + sed -i'.bak' 's/^.*input.dd/input.dd/g' $(TMPDIR)/input.dd + diff -u $(TMPDIR)/input.dd input.dd diff --git a/src/test/run-make/dep-info-no-analysis/input.dd b/src/test/run-make/dep-info-no-analysis/input.dd new file mode 100644 index 00000000000..f2c8676515b --- /dev/null +++ b/src/test/run-make/dep-info-no-analysis/input.dd @@ -0,0 +1,3 @@ +input.dd: input.rs + +input.rs: diff --git a/src/test/run-make/dep-info-no-analysis/input.rs b/src/test/run-make/dep-info-no-analysis/input.rs new file mode 100644 index 00000000000..523b0f0670c --- /dev/null +++ b/src/test/run-make/dep-info-no-analysis/input.rs @@ -0,0 +1,14 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// Tests that dep info can be emitted without resolving external crates. +extern crate not_there; + +fn main() {} |
