From b14b1f779c74dff779a2c45fc2e912a732078157 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 12 Jan 2021 18:27:52 +0000 Subject: [PATCH] cargo: filter out stupid doc output warnings Signed-off-by: Ian Jackson --- .cargo-doc-suppress-errors | 6 ++++++ Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .cargo-doc-suppress-errors diff --git a/.cargo-doc-suppress-errors b/.cargo-doc-suppress-errors new file mode 100644 index 00000000..8ae18ff3 --- /dev/null +++ b/.cargo-doc-suppress-errors @@ -0,0 +1,6 @@ +The lib target `.*` in package `.*` has the same output filename as the lib target `.*` in package `.*`. +Colliding filename is:.* +The targets should have unique names. +This is a known bug where multiple crates with the same name use +the same path; see \. +warning: output filename collision\. diff --git a/Makefile b/Makefile index de000664..aeaef80e 100644 --- a/Makefile +++ b/Makefile @@ -162,7 +162,7 @@ stamp/cargo-wdt.debug: $(call rsrcs,.) $(stamp) stamp/cargo.doc: $(call rsrcs,.) - $(CARGO) doc --workspace + $(CARGO) doc --workspace 2>&1 | egrep -vf .cargo-doc-suppress-errors $(stamp) $(addprefix stamp/cargo.wasm-,$(DR)):: \ -- 2.30.2