fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
300 B11 linesraw
1-include ../tools.mk
2
3# needs-sanitizer-support
4# only-linux
5# only-x86_64
6# ignore-test
7# FIXME(#46126) ThinLTO for libstd broke this test
8
9all:
10	$(RUSTC) -C opt-level=1 -g -Z sanitizer=leak -Z print-link-args leak.rs | $(CGREP) librustc_lsan
11	$(TMPDIR)/leak 2>&1 | $(CGREP) 'detected memory leaks'