fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
303 B9 linesraw
1-include ../tools.mk
2
3all:
4	$(RUSTC) --crate-type=rlib crateA.rs
5	$(RUSTC) --crate-type=rlib crateB.rs
6	$(call REMOVE_RLIBS,crateA)
7	# Ensure crateC fails to compile since dependency crateA is missing
8	$(RUSTC) crateC.rs 2>&1 | \
9		$(CGREP) 'can'"'"'t find crate for `crateA` which `crateB` depends on'