2021-03-15 13:00:14 -05:00
|
|
|
# ignore-none no-std is not supported
|
2021-03-16 13:22:21 -05:00
|
|
|
# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
|
2021-03-15 13:00:14 -05:00
|
|
|
|
2020-11-08 22:31:05 -06:00
|
|
|
include ../../run-make-fulldeps/tools.mk
|
|
|
|
|
2020-09-01 23:50:07 -05:00
|
|
|
# Tests that we don't ICE during incremental compilation after modifying a
|
|
|
|
# function span such that its previous end line exceeds the number of lines
|
|
|
|
# in the new file, but its start line/column and length remain the same.
|
|
|
|
|
|
|
|
SRC=$(TMPDIR)/src
|
|
|
|
INCR=$(TMPDIR)/incr
|
|
|
|
|
|
|
|
all:
|
|
|
|
mkdir $(SRC)
|
|
|
|
mkdir $(INCR)
|
|
|
|
cp a.rs $(SRC)/main.rs
|
2021-01-09 16:54:21 -06:00
|
|
|
$(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET)
|
2020-09-01 23:50:07 -05:00
|
|
|
cp b.rs $(SRC)/main.rs
|
2021-01-09 16:54:21 -06:00
|
|
|
$(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET)
|