No longer mark Yul as experimental.

This commit is contained in:
Daniel Kirchner 2022-03-14 14:47:16 +01:00
parent e58c0b561d
commit 0172f61340
52 changed files with 16 additions and 96 deletions

View File

@ -1448,10 +1448,6 @@ Json::Value StandardCompiler::compileYul(InputsAndSettings _inputsAndSettings)
return output;
}
// TODO: move this warning to AssemblyStack
output["errors"] = Json::arrayValue;
output["errors"].append(formatError(Error::Severity::Warning, "Warning", "general", "Yul is still experimental. Please use the output with care."));
string contractName = stack.parserResult()->name.str();
bool const wildcardMatchesExperimental = true;

View File

@ -69,7 +69,6 @@ function compileFull
local exit_code=$?
local errors; errors=$(grep -v -E \
-e 'Warning: This is a pre-release compiler version|Warning: Experimental features are turned on|pragma experimental ABIEncoderV2|^ +--> |^ +\||^[0-9]+ +\| ' \
-e 'Warning: Yul is still experimental. Please use the output with care.' \
-e '^No text representation found.$' < "$stderr_path"
)

View File

@ -1017,8 +1017,6 @@ void CommandLineInterface::assemble(yul::AssemblyStack::Language _language, yul:
{
solAssert(m_options.input.mode == InputMode::Assembler, "");
serr() << "Warning: Yul is still experimental. Please use the output with care." << endl;
bool successful = true;
map<string, yul::AssemblyStack> assemblyStacks;
for (auto const& src: m_fileReader.sourceUnits())

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +1 @@
{"contracts":{"A":{"a":{"evm":{"bytecode":{"linkReferences":{},"object":"<BYTECODE REMOVED>"}}}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
{"contracts":{"A":{"a":{"evm":{"bytecode":{"linkReferences":{},"object":"<BYTECODE REMOVED>"}}}}},}

View File

@ -1 +1 @@
{"contracts":{"A":{"a":{"evm":{"bytecode":{"linkReferences":{},"object":"<BYTECODE REMOVED>"}}}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
{"contracts":{"A":{"a":{"evm":{"bytecode":{"linkReferences":{},"object":"<BYTECODE REMOVED>"}}}}},}

View File

@ -1 +1 @@
{"contracts":{"A":{"a":{"evm":{"bytecode":{"linkReferences":{"contract/test.sol":{"L2":[{"length":20,"start":22}]}},"object":"<BYTECODE REMOVED>__$fb58009a6b1ecea3b9d99bedd645df4ec3$__<BYTECODE REMOVED>"}}}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
{"contracts":{"A":{"a":{"evm":{"bytecode":{"linkReferences":{"contract/test.sol":{"L2":[{"length":20,"start":22}]}},"object":"<BYTECODE REMOVED>__$fb58009a6b1ecea3b9d99bedd645df4ec3$__<BYTECODE REMOVED>"}}}}},}

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -26,4 +26,4 @@
sstore(add(x, 0), 0)
}
}
"}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
"}}},}

View File

@ -23,14 +23,4 @@ tag_3:
}
}
},
"errors":
[
{
"component": "general",
"formattedMessage": "Yul is still experimental. Please use the output with care.",
"message": "Yul is still experimental. Please use the output with care.",
"severity": "warning",
"type": "Warning"
}
]
}
}

View File

@ -23,14 +23,4 @@ tag_3:
}
}
},
"errors":
[
{
"component": "general",
"formattedMessage": "Yul is still experimental. Please use the output with care.",
"message": "Yul is still experimental. Please use the output with care.",
"severity": "warning",
"type": "Warning"
}
]
}
}

View File

@ -21,14 +21,4 @@ tag_3:
}
}
},
"errors":
[
{
"component": "general",
"formattedMessage": "Yul is still experimental. Please use the output with care.",
"message": "Yul is still experimental. Please use the output with care.",
"severity": "warning",
"type": "Warning"
}
]
}
}

View File

@ -1 +1 @@
{"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
{}

View File

@ -39,14 +39,4 @@
}
}
},
"errors":
[
{
"component": "general",
"formattedMessage": "Yul is still experimental. Please use the output with care.",
"message": "Yul is still experimental. Please use the output with care.",
"severity": "warning",
"type": "Warning"
}
]
}
}

View File

@ -1 +1 @@
{"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
{}

View File

@ -28,4 +28,4 @@ data_4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45 616263
}
data \"DataName\" hex\"616263\"
}
"}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
"}}},}

View File

@ -43,4 +43,4 @@ sub_0: assembly {
code { revert(0, 0) }
}
}
"}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
"}}},}

View File

@ -21,4 +21,4 @@
}
}
}
"}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
"}}},}

View File

@ -16,4 +16,4 @@
","irOptimized":"object \"object\" {
code { { sstore(mload(0), 0) } }
}
"}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
"}}},}

View File

@ -12,4 +12,4 @@
sstore
/* \"A\":0:72 */
stop
"}}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
"}}}},}

View File

@ -15,4 +15,4 @@
/* \"A\":0:72 */
pop
pop
"}}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}
"}}}},}

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1,4 +1,3 @@
Warning: Yul is still experimental. Please use the output with care.
Error: Function "jump" not found.
--> strict_asm_jump/input.yul:1:3:
|

View File

@ -1,4 +1,3 @@
Warning: Yul is still experimental. Please use the output with care.
Error: Expected keyword "object".
--> strict_asm_only_cr/input.yul:1:2:
|

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.

View File

@ -1 +0,0 @@
Warning: Yul is still experimental. Please use the output with care.