Try to fix issues with macos clang, v2

This commit is contained in:
Guillaume Maudoux 2022-03-18 15:22:25 +01:00
parent 37e84316c2
commit 726f5836d8

View file

@ -709,12 +709,12 @@ std::optional<EvalState::Doc> EvalState::getDoc(Value & v)
LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
const Pos & pos,
const char * s,
const std::string & s2,
const std::string_view & s2,
const Symbol & sym,
const Pos & p2,
const std::string_view & s3))
{
throw TypeError({
throw TypeError(ErrorInfo {
.msg = hintfmt(s, s2, sym),
.errPos = pos,
}).addTrace(p2, s3);
@ -724,12 +724,12 @@ LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
const Pos & pos,
const Suggestions & suggestions,
const char * s,
const std::string & s2,
const std::string_view & s2,
const Symbol & sym,
const Pos & p2,
const std::string_view & s3))
{
throw TypeError({
throw TypeError(ErrorInfo {
.msg = hintfmt(s, s2, sym),
.errPos = pos,
.suggestions = suggestions