summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/rust.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-12-05 14:48:39 -0500
committerEli Schwartz <eschwartz93@gmail.com>2023-12-05 19:52:23 -0500
commit39ecfc2d542ae7e248119b5dcb6f0a01493e2ae6 (patch)
tree8aa83601e664b5bcd19f786df5a15f0c0fab141f /mesonbuild/compilers/rust.py
parent5f659af870011e74299d1455a65c2cd5f5ace51f (diff)
downloadmeson-39ecfc2d542ae7e248119b5dcb6f0a01493e2ae6.tar.gz
compilers: drop dead code
no_warn_args is unused. Its only purpose was to implement automatic hiding of UB in transpiled code, and it was not used at all in languages other than C/C++ -- specifically when the C/C++ source files were created by transpiling from vala or cython.
Diffstat (limited to 'mesonbuild/compilers/rust.py')
-rw-r--r--mesonbuild/compilers/rust.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py
index 1fb94aa44..1eac1c064 100644
--- a/mesonbuild/compilers/rust.py
+++ b/mesonbuild/compilers/rust.py
@@ -213,9 +213,6 @@ class RustCompiler(Compiler):
# TODO: I'm not really sure what to put here, Rustc doesn't have warning
return self._WARNING_LEVELS[level]
- def get_no_warn_args(self) -> T.List[str]:
- return self._WARNING_LEVELS["0"]
-
def get_pic_args(self) -> T.List[str]:
# relocation-model=pic is rustc's default already.
return []