Rollup merge of #100912 - tmiasko:make-include, r=TaKO8Ki

Diagnose missing includes in run-make tests
This commit is contained in:
Matthias Krüger 2022-08-24 18:20:14 +02:00 committed by GitHub
commit ecf14d459c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
273 changed files with 273 additions and 273 deletions

View File

@ -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

View File

@ -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

View File

@ -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" )

View File

@ -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)

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
mkdir $(TMPDIR)/a

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) --crate-type=staticlib nonclike.rs

View File

@ -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.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
cp foo.rs $(TMPDIR)

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-macos
#

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-macos
#

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(TMPDIR)/$(call BIN,bar)
$(call RUN,bar)

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-freebsd
# FIXME

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) checkrust.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,cfoo)
$(RUSTC) foo.rs -C prefer-dynamic

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,cfoo)
$(RUSTC) foo.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: archive
# Compile `main.rs`, which will link into our library, and run it.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,add)
$(RUSTC) main.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
echo a | $(CGREP) a

View File

@ -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

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
#Option taking a number

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
echo 'fn main(){}' | $(RUSTC) -

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
mkdir -p $(TMPDIR)/a $(TMPDIR)/b

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(TMPDIR)/libnative.a
mkdir -p $(TMPDIR)/crate

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# only-windows-gnu

View File

@ -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

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
[ `$(RUSTC) --print crate-name crate.rs` = "foo" ]

View File

@ -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.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo.rs

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) debug.rs -C debug-assertions=no

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo.rs --emit dep-info

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows
# ignore-freebsd

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows
# ignore-freebsd

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) m1.rs -C prefer-dynamic

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows
# ignore-macos

View File

@ -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

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo.rs --crate-type staticlib

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
# Let's get a nice error message

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) success.rs; [ $$? -eq 0 ]

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) lib.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# Attempt to build this dependency tree:
#

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) bar.rs --crate-type=rlib

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# Test mixing pathless --extern with paths.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) testcrate.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows-msvc

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,ctest)
$(RUSTC) test.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,ctest)
$(RUSTC) testcrate.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo1.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo1.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) libc.rs -Cmetadata=foo

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) -C extra-filename=bar foo.rs -C save-temps

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: foo
$(call RUN,foo) | $(CGREP) -v unreachable

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: foo
$(call RUN,foo)

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows
# ignore-macos

View File

@ -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.

View File

@ -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.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-freebsd

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# rust-lang/rust#70924: Test that if we add rust-src component in between two
# incremental compiles, the compiler does not ICE on the second.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo.rs --emit llvm-ir -C codegen-units=2

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# The rust crate foo will link to the native library foo, while the rust crate
# bar will link to the native library bar. There is also a dependency between

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows-msvc
#

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
touch $(TMPDIR)/lib.rmeta

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
touch $(TMPDIR)/libfoo.a

View File

@ -5,7 +5,7 @@
# and then our aux-built libraries will collide with liburl (they have
# the same version listed)
-include ../tools.mk
include ../tools.mk
all:
mkdir $(TMPDIR)/other

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# Test to make sure that reachable extern fns are always available in final
# productcs, including when LTO is used. In this test, the `foo` crate has a

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
TMP=fake TMPDIR=fake $(RUSTC) foo.rs 2>&1 | $(CGREP) "couldn't create a temp dir:"

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,foo)
$(RUSTC) foo.rs -C extra-filename=-383hf8 -C prefer-dynamic

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# Regression test for ICE #18943 when compiling as lib

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# This test ensures that rustc compile_input can be called twice in one task
# without causing a panic.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# Test output to be four
# The original error only occurred when printing, not when comparing using assert!

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: foo.rs
$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# only-linux

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# This test ensures that rustc does not panic with `-o ""` option.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all: $(call NATIVE_STATICLIB,a) $(call NATIVE_STATICLIB,b)
$(RUSTC) a.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) -O foo.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
rm -f $(TMPDIR)/foo-output

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) --target x86_64_unknown-linux-musl main.rs 2>&1 | $(CGREP) \

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) main.rs --error-format json 2>&1 | $(CGREP) -e '"byte_start":23\b' '"byte_end":29\b'

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) a.rs && $(RUSTC) b.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) a.rs && $(RUSTC) b.rs && $(RUSTC) c.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) foo.rs; $(RUSTC) bar.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# The ICE occurred in the following situation:
# * `foo` declares `extern crate bar, baz`, depends only on `bar` (forgetting `baz` in `Cargo.toml`)

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) main.rs -C opt-level=1

View File

@ -1,7 +1,7 @@
# only-linux
# ignore-32bit
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) eh_frame-terminator.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# ignore-windows-msvc

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
all:
$(RUSTC) panic.rs

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# `llvm-objdump`'s output looks different on windows than on other platforms.
# It should be enough to check on Unix platforms, so:

View File

@ -6,7 +6,7 @@
# The test links a rust static library into a shared library, and checks that
# the linker doesn't have to flag the resulting file as containing TEXTRELs.
-include ../tools.mk
include ../tools.mk
# only-linux

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# Test that previously triggered a linker failure with root cause
# similar to one found in the issue #69368.

View File

@ -1,4 +1,4 @@
-include ../tools.mk
include ../tools.mk
# Test to make sure that inner functions within a polymorphic outer function
# don't get re-codegened when the outer function is monomorphized. The test

View File

@ -3,7 +3,7 @@
# This test makes sure the embed bitcode in elf created with
# lto-embed-bitcode=optimized is valid llvm BC module.
-include ../../run-make-fulldeps/tools.mk
include ../../run-make-fulldeps/tools.mk
all:
$(RUSTC) test.rs --target $(TARGET) -Clink-arg=-fuse-ld=lld -Clinker-plugin-lto -Clinker=$(CLANG) -Clink-arg=-Wl,--plugin-opt=-lto-embed-bitcode=optimized -Zemit-thin-lto=no

Some files were not shown because too many files have changed in this diff Show More