Skip to content

Commit 2d7b80f

Browse files
author
Robin Kruppe
committed
---
yaml --- r: 209850 b: refs/heads/try c: b3a7837 h: refs/heads/master v: v3
1 parent 4fb1880 commit 2d7b80f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+506
-1139
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: b5fddf9b19ff3d4441b3e3cf7c3a6132b6286d39
5+
refs/heads/try: b3a7837eab3384876144621dedbeab88a1e44738
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/configure

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,6 @@ to_gnu_triple() {
337337
esac
338338
}
339339

340-
# Prints the absolute path of a directory to stdout
341-
abs_path() {
342-
local _path="$1"
343-
# Unset CDPATH because it causes havok: it makes the destination unpredictable
344-
# and triggers 'cd' to print the path to stdout. Route `cd`'s output to /dev/null
345-
# for good measure.
346-
(unset CDPATH && cd "$_path" > /dev/null && pwd)
347-
}
348-
349340
msg "looking for configure programs"
350341
need_cmd cmp
351342
need_cmd mkdir
@@ -518,7 +509,7 @@ fi
518509

519510
DEFAULT_BUILD="${CFG_CPUTYPE}-${CFG_OSTYPE}"
520511

521-
CFG_SRC_DIR="$(abs_path $(dirname $0))/"
512+
CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
522513
CFG_BUILD_DIR="$(pwd)/"
523514
CFG_SELF="$0"
524515
CFG_CONFIGURE_ARGS="$@"

branches/try/mk/main.mk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta
34-
# When building beta distributables just reuse the same "beta" name
35-
# so when we upload we'll always override the previous beta. This
36-
# doesn't actually impact the version reported by rustc - it's just
37-
# for file naming.
38-
CFG_PACKAGE_VERS=beta
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
3935
CFG_DISABLE_UNSTABLE_FEATURES=1
4036
endif
4137
ifeq ($(CFG_RELEASE_CHANNEL),nightly)

branches/try/mk/tests.mk

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -753,22 +753,20 @@ PRETTY_DEPS_pretty-rpass-full = $(RPASS_FULL_TESTS)
753753
PRETTY_DEPS_pretty-rfail = $(RFAIL_TESTS)
754754
PRETTY_DEPS_pretty-bench = $(BENCH_TESTS)
755755
PRETTY_DEPS_pretty-pretty = $(PRETTY_TESTS)
756+
# The stage- and host-specific dependencies are for e.g. macro_crate_test which pulls in
757+
# external crates.
758+
PRETTY_DEPS$(1)_H_$(3)_pretty-rpass =
759+
PRETTY_DEPS$(1)_H_$(3)_pretty-rpass-full = $$(HLIB$(1)_H_$(3))/stamp.syntax $$(HLIB$(1)_H_$(3))/stamp.rustc
760+
PRETTY_DEPS$(1)_H_$(3)_pretty-rfail =
761+
PRETTY_DEPS$(1)_H_$(3)_pretty-bench =
762+
PRETTY_DEPS$(1)_H_$(3)_pretty-pretty =
756763
PRETTY_DIRNAME_pretty-rpass = run-pass
757764
PRETTY_DIRNAME_pretty-rpass-valgrind = run-pass-valgrind
758765
PRETTY_DIRNAME_pretty-rpass-full = run-pass-fulldeps
759766
PRETTY_DIRNAME_pretty-rfail = run-fail
760767
PRETTY_DIRNAME_pretty-bench = bench
761768
PRETTY_DIRNAME_pretty-pretty = pretty
762769

763-
define DEF_PRETTY_FULLDEPS
764-
PRETTY_DEPS$(1)_T_$(2)_H_$(3)_pretty-rpass-full = $$(CSREQ$(1)_T_$(3)_H_$(3))
765-
endef
766-
767-
$(foreach host,$(CFG_HOST), \
768-
$(foreach target,$(CFG_TARGET), \
769-
$(foreach stage,$(STAGES), \
770-
$(eval $(call DEF_PRETTY_FULLDEPS,$(stage),$(target),$(host))))))
771-
772770
define DEF_RUN_PRETTY_TEST
773771

774772
PRETTY_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
@@ -782,7 +780,7 @@ check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4
782780
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
783781
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
784782
$$(PRETTY_DEPS_$(4)) \
785-
$$(PRETTY_DEPS$(1)_T_$(2)_H_$(3)_$(4))
783+
$$(PRETTY_DEPS$(1)_H_$(3)_$(4))
786784
@$$(call E, run pretty-rpass [$(2)]: $$<)
787785
$$(Q)touch $$@.start_time
788786
$$(Q)$$(call CFG_RUN_CTEST_$(2),$(1),$$<,$(3)) \

branches/try/src/compiletest/runtest.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -979,25 +979,13 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
979979
// is the ending point, and * represents ANSI color codes.
980980
for line in proc_res.stderr.lines() {
981981
let mut was_expected = false;
982-
let mut prev = 0;
983982
for (i, ee) in expected_errors.iter().enumerate() {
984983
if !found_flags[i] {
985984
debug!("prefix={} ee.kind={} ee.msg={} line={}",
986985
prefixes[i],
987986
ee.kind,
988987
ee.msg,
989988
line);
990-
// Suggestions have no line number in their output, so take on the line number of
991-
// the previous expected error
992-
if ee.kind == "suggestion" {
993-
assert!(expected_errors[prev].kind == "help",
994-
"SUGGESTIONs must be preceded by a HELP");
995-
if line.contains(&ee.msg) {
996-
found_flags[i] = true;
997-
was_expected = true;
998-
break;
999-
}
1000-
}
1001989
if (prefix_matches(line, &prefixes[i]) || continuation(line)) &&
1002990
line.contains(&ee.kind) &&
1003991
line.contains(&ee.msg) {
@@ -1006,7 +994,6 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
1006994
break;
1007995
}
1008996
}
1009-
prev = i;
1010997
}
1011998

1012999
// ignore this msg which gets printed at the end
@@ -1465,7 +1452,7 @@ fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> PathBuf {
14651452
fn aux_output_dir_name(config: &Config, testfile: &Path) -> PathBuf {
14661453
let f = output_base_name(config, testfile);
14671454
let mut fname = f.file_name().unwrap().to_os_string();
1468-
fname.push(&format!(".{}.libaux", config.mode));
1455+
fname.push("libaux");
14691456
f.with_file_name(&fname)
14701457
}
14711458

0 commit comments

Comments
 (0)