Compilation failure: -Winvalid-specialization for 'is_default_constructible'
Using rust nightly and compiling from head of master, I got this error:
cargo:warning=src/sb/sbcommandinterpreter.rs:7:23: error: 'is_default_constructible' cannot be specialized: Users are not allowed to specialize this standard library entity [-Winvalid-specialization] cargo:warning= 7 | template<> struct is_default_constructiblelldb::SBCommandInterpreter : std::false_type {}; cargo:warning= | ^ cargo:warning=/usr/bin/../include/c++/v1/__type_traits/is_constructible.h:49:8: note: marked '_Clang::no_specializations' here cargo:warning= 49 | struct _LIBCPP_NO_SPECIALIZATIONS is_default_constructible : integral_constant<bool, __is_constructible(_Tp)> {}; cargo:warning= | ^ cargo:warning=/usr/bin/../include/c++/v1/__config:964:9: note: expanded from macro '_LIBCPP_NO_SPECIALIZATIONS' cargo:warning= 964 | [[_Clang::no_specializations("Users are not allowed to specialize this standard library entity")]]
I just commented out the offending line (7 of sbcommandinterpreter.rs) and subsequent compilation ran without a hitch, though the more prudent solution for the masses (people on LLVM < 18 plus everyone else) would probably be passing -Wno-invalid-specialization to rustc? I tried passing that arg through RUSTFLAGS but it didn't disable the warning; I don't feel like reading docs right now to figure out how to pass CFLAGS into rust so I'll just make this issue as a reminder.