fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
603 B19 linesraw
1# ignore-none no-std is not supported
2# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
3
4include ../tools.mk
5
6# Tests that we don't ICE during incremental compilation after modifying a
7# function span such that its previous end line exceeds the number of lines
8# in the new file, but its start line/column and length remain the same.
9
10SRC=$(TMPDIR)/src
11INCR=$(TMPDIR)/incr
12
13all:
14	mkdir $(SRC)
15	mkdir $(INCR)
16	cp a.rs $(SRC)/main.rs
17	$(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET)
18	cp b.rs $(SRC)/main.rs
19	$(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET)