summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile
blob: c14006cc2e052b7a0bd77f6ae17dc0fa668b23cb (plain)
1
2
3
4
5
6
7
8
9
10
11
-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" )

all: foo
	test -z '$(OUT)'

# This is just to make sure the above command actually succeeds
foo:
	$(RUSTC) foo.rs -A warnings