This warning has been around in the compiler for quite some time now, but the real place for a warning like this, if it should exist, is in Cargo, not in the compiler itself. It's a first-class feature of Cargo that multiple versions of a crate can be compiled into the same executable, and we shouldn't be warning about our first-class features.
5 lines
97 B
Makefile
5 lines
97 B
Makefile
-include ../tools.mk
|
|
|
|
all:
|
|
$(RUSTC) lib.rs
|
|
$(RUSTC) test.rs --extern foo=$(TMPDIR)/libbar.rlib
|