diff options
author | jperkin <jperkin@pkgsrc.org> | 2019-05-22 09:43:14 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2019-05-22 09:43:14 +0000 |
commit | 9d1f015e8cb658f23d6fb2120aaf86cdf033ac6f (patch) | |
tree | 527184c4fb28fabbe0f2d6b741832b2c48aeeee0 /lang/rust | |
parent | 40250288d966ebe5fc9012efedd4d00923912c72 (diff) | |
download | pkgsrc-9d1f015e8cb658f23d6fb2120aaf86cdf033ac6f.tar.gz |
rust: Avoid ambiguous function call.
Diffstat (limited to 'lang/rust')
-rw-r--r-- | lang/rust/distinfo | 3 | ||||
-rw-r--r-- | lang/rust/patches/patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/lang/rust/distinfo b/lang/rust/distinfo index 30eaff73cb6..23faeeba589 100644 --- a/lang/rust/distinfo +++ b/lang/rust/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.75 2019/05/21 18:00:46 jperkin Exp $ +$NetBSD: distinfo,v 1.76 2019/05/22 09:43:14 jperkin Exp $ SHA1 (rust-1.33.0-i686-apple-darwin.tar.gz) = 3747f4e11ef6d3229bfd41dbdd9990897f9dea83 RMD160 (rust-1.33.0-i686-apple-darwin.tar.gz) = 32d72b91d159a98470bbfaff4e1087f8b15eb3b9 @@ -117,6 +117,7 @@ SHA1 (patch-src_llvm-project_llvm_CMakeLists.txt) = d49503d19c30a64d571eb7fa79e7 SHA1 (patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake) = 19daf5f8a26bfaebca942b5cbe8521fb060fe8d9 SHA1 (patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h) = 7588a46aaa277ef04b33ac6d904b9d1d81579f2a SHA1 (patch-src_llvm-project_llvm_include_llvm_Analysis_ConstantFolding.h) = 977de4b2a9d37f7e7c782f2407c15591e032b6c6 +SHA1 (patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp) = 498395d1ae5b791b9e4710a856fdebe2fb87011e SHA1 (patch-src_tools_cargo_src_cargo_core_profiles.rs) = 3aac5d54a6fe96b9559552e67e497488142d4e80 SHA1 (patch-src_tools_cargo_tests_testsuite_build.rs) = b50d65cfd2fea4793bcbec2515f5fc0203052ac0 SHA1 (patch-src_tools_rls_rls_src_cmd.rs) = fade3e60fecac5c4e4d4ee5bee82659b4eb385b7 diff --git a/lang/rust/patches/patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp b/lang/rust/patches/patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp new file mode 100644 index 00000000000..d7eee88fdb8 --- /dev/null +++ b/lang/rust/patches/patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp,v 1.1 2019/05/22 09:43:14 jperkin Exp $ + +Avoid ambiguous function call. + +--- src/llvm-project/llvm/utils/FileCheck/FileCheck.cpp.orig 2019-02-12 15:22:48.000000000 +0000 ++++ src/llvm-project/llvm/utils/FileCheck/FileCheck.cpp +@@ -403,7 +403,7 @@ static void DumpAnnotatedInput(raw_ostre + unsigned LineCount = InputFileText.count('\n'); + if (InputFileEnd[-1] != '\n') + ++LineCount; +- unsigned LineNoWidth = log10(LineCount) + 1; ++ unsigned LineNoWidth = log10((float)LineCount) + 1; + // +3 below adds spaces (1) to the left of the (right-aligned) line numbers + // on input lines and (2) to the right of the (left-aligned) labels on + // annotation lines so that input lines and annotation lines are more |