From e2260650a046a54f97f57e76ad6f0c106f96cea0 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 17 May 2021 11:44:25 -0700 Subject: rust: Add werror arguments --- docs/markdown/snippets/rustc-improvements.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 docs/markdown/snippets/rustc-improvements.md (limited to 'docs') diff --git a/docs/markdown/snippets/rustc-improvements.md b/docs/markdown/snippets/rustc-improvements.md new file mode 100644 index 0000000..2db0a11 --- /dev/null +++ b/docs/markdown/snippets/rustc-improvements.md @@ -0,0 +1,4 @@ +## Improvements for the Rustc compiler + +- Werror now works, this set's `-D warnings`, which will cause rustc to error + for every warning not explicitly disabled -- cgit v1.1 From d32fc0563d629eac112f0b7b5b0f21d434f0a74b Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 17 May 2021 12:06:01 -0700 Subject: compilers/rust: Implement warning levels Currently this implements 3 warning levels, 1 and 2 are just the "default" set by rustc, 3, is "everything is a warning", and 0 is "nothign is a warning". --- docs/markdown/snippets/rustc-improvements.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/markdown/snippets/rustc-improvements.md b/docs/markdown/snippets/rustc-improvements.md index 2db0a11..e874b38 100644 --- a/docs/markdown/snippets/rustc-improvements.md +++ b/docs/markdown/snippets/rustc-improvements.md @@ -2,3 +2,4 @@ - Werror now works, this set's `-D warnings`, which will cause rustc to error for every warning not explicitly disabled +- warning levels have been implemented -- cgit v1.1 From 6514abf681425e6a13f4c547401493cd0b7d1f00 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 17 May 2021 12:13:30 -0700 Subject: rustc: implement pic args --- docs/markdown/snippets/rustc-improvements.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/markdown/snippets/rustc-improvements.md b/docs/markdown/snippets/rustc-improvements.md index e874b38..869888c 100644 --- a/docs/markdown/snippets/rustc-improvements.md +++ b/docs/markdown/snippets/rustc-improvements.md @@ -3,3 +3,4 @@ - Werror now works, this set's `-D warnings`, which will cause rustc to error for every warning not explicitly disabled - warning levels have been implemented +- support for meson's pic has been enabled -- cgit v1.1 From 30202a24021587b7d7ddffd8312eb5b425b3e273 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 17 May 2021 10:42:57 -0700 Subject: compilers/rust: Add support for clippy Clippy is a compiler wrapper for rust that provides an extra layer of linting. It's quite popular, but unfortunately doesn't provide the output of the compiler that it's wrapping in it's output, so we don't detect that clippy is rustc. This small patch adds a new compiler class (that is the Rustc class with a different id) and the necessary logic to detect that clippy is in fact rustc) Fixes: #8767 --- docs/markdown/snippets/rust-clippy-driver-support.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/rust-clippy-driver-support.md (limited to 'docs') diff --git a/docs/markdown/snippets/rust-clippy-driver-support.md b/docs/markdown/snippets/rust-clippy-driver-support.md new file mode 100644 index 0000000..c486473 --- /dev/null +++ b/docs/markdown/snippets/rust-clippy-driver-support.md @@ -0,0 +1,6 @@ +## Support for clippy-driver as a rustc wrapper + +Clippy is a popular linting tool for Rust, and is invoked in place of rustc as a +wrapper. Unfortunately it doesn't proxy rustc's output, so we need to have a +small wrapper around it so that Meson can correctly detect the underlying rustc, +but still display clippy -- cgit v1.1