Merge pull request #1645 from derekdreery/fix_futures_0_3_hack

Add in (unsafe and incorrect) impls of Send/Sync that are now required.
This commit is contained in:
Alex Crichton
2019-07-08 12:04:43 -05:00
committed by GitHub
5 changed files with 16 additions and 18 deletions

View File

@ -130,8 +130,7 @@ impl<'a, 'b> Builder<'a, 'b> {
// returning data through.
if binding.return_via_outptr.is_some() {
drop(webidl_params.next());
self.args_prelude
.push_str("const retptr = 8;\n");
self.args_prelude.push_str("const retptr = 8;\n");
arg_names.push("retptr".to_string());
}