Skip to content

Commit

Permalink
Rollup merge of rust-lang#100912 - tmiasko:make-include, r=TaKO8Ki
Browse files Browse the repository at this point in the history
Diagnose missing includes in run-make tests
  • Loading branch information
JohnTitor authored Aug 23, 2022
2 parents f123b8d + ba74a62 commit d9fd2c4
Show file tree
Hide file tree
Showing 273 changed files with 273 additions and 273 deletions.
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/a-b-a-linker-guard/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# Test that if we build `b` against a version of `a` that has one set
# of types, it will not run with a dylib that has a different set of
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_global_oom_handling
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# Test that -A warnings makes the 'empty trait list for derive' warning go away
OUT=$(shell $(RUSTC) foo.rs -A warnings 2>&1 | grep "warning" )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# Test that -A warnings makes the 'empty trait list for derive' warning go away
DEP=$(shell $(RUSTC) bar.rs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
mkdir $(TMPDIR)/a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) --crate-type=staticlib nonclike.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/atomic-lock-free/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# This tests ensure that atomic types are never lowered into runtime library calls that are not
# guaranteed to be lock-free.
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/bare-outfile/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
cp foo.rs $(TMPDIR)
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/c-dynamic-dylib/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-macos
#
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/c-dynamic-rlib/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-macos
#
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/c-link-to-rust-dylib/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(TMPDIR)/$(call BIN,bar)
$(call RUN,bar)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-freebsd
# FIXME
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) checkrust.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/c-static-dylib/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,cfoo)
$(RUSTC) foo.rs -C prefer-dynamic
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/c-static-rlib/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,cfoo)
$(RUSTC) foo.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: archive
# Compile `main.rs`, which will link into our library, and run it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,add)
$(RUSTC) main.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
echo a | $(CGREP) a
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/cdylib-fewer-symbols/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Test that allocator-related symbols don't show up as exported from a cdylib as
# they're internal to Rust and not part of the public ABI.

-include ../tools.mk
include ../tools.mk

# ignore-windows
# FIXME: The __rdl_ and __rust_ symbol still remains, no matter using MSVC or GNU
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
#Option taking a number
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/compile-stdin/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
echo 'fn main(){}' | $(RUSTC) -
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
mkdir -p $(TMPDIR)/a $(TMPDIR)/b
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/compiler-lookup-paths/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(TMPDIR)/libnative.a
mkdir -p $(TMPDIR)/crate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# only-windows-gnu

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) --edition=2021 --crate-type=rlib ../../../../library/core/src/lib.rs --cfg no_fp_fmt_parse
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/crate-data-smoke/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
[ `$(RUSTC) --print crate-name crate.rs` = "foo" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../../run-make-fulldeps/tools.mk
include ../../run-make-fulldeps/tools.mk

# Ensure that crates compiled with different rustc versions cannot
# be dynamically linked.
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/crate-name-priority/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) foo.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/cross-lang-lto-clang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This test makes sure that cross-language inlining actually works by checking
# the generated machine code.

-include ../tools.mk
include ../tools.mk

all: cpp-executable rust-executable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# can be executed without anything crashing. It does not test whether PGO or
# xLTO have any specific effect on the generated code.

-include ../tools.mk
include ../tools.mk

COMMON_FLAGS=-Copt-level=3 -Ccodegen-units=1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
# (so fixing it is harder). See #57765 for context
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/cross-lang-lto/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

-include ../tools.mk
include ../tools.mk

# ignore windows due to libLLVM being present in PATH and the PATH and library path being the same
# (so fixing it is harder). See #57765 for context
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/debug-assertions/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) debug.rs -C debug-assertions=no
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) foo.rs --emit dep-info
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/dep-info-spaces/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-windows
# ignore-freebsd
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/dep-info/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-windows
# ignore-freebsd
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/dylib-chain/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) m1.rs -C prefer-dynamic
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/emit-stack-sizes/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-windows
# ignore-macos
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/emit/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) -Copt-level=0 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) foo.rs --crate-type staticlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
# Let's get a nice error message
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/exit-code/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) success.rs; [ $$? -eq 0 ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) lib.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# Attempt to build this dependency tree:
#
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/extern-flag-fun/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) bar.rs --crate-type=rlib
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/extern-flag-pathless/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# Test mixing pathless --extern with paths.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) foo.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/extern-fn-generic/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,test)
$(RUSTC) testcrate.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/extern-fn-mangle/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/extern-fn-reachable/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-windows-msvc

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,ctest)
$(RUSTC) test.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/extern-fn-with-union/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: $(call NATIVE_STATICLIB,ctest)
$(RUSTC) testcrate.rs
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/extern-multiple-copies/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) foo1.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) foo1.rs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) libc.rs -Cmetadata=foo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all:
$(RUSTC) -C extra-filename=bar foo.rs -C save-temps
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/foreign-double-unwind/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: foo
$(call RUN,foo) | $(CGREP) -v unreachable
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/foreign-exceptions/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

all: foo
$(call RUN,foo)
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/fpic/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-windows
# ignore-macos
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/glibc-staticlib-args/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# only-gnu
# only-linux

-include ../tools.mk
include ../tools.mk

# This ensures that std::env::args works in a library called from C on glibc Linux.

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/hir-tree/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# Test that hir-tree output doesn't crash and includes
# the string constant we would expect to see.
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/include_bytes_deps/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk

# ignore-freebsd

Expand Down
Loading

0 comments on commit d9fd2c4

Please sign in to comment.