Skip to content

Commit

Permalink
Bug 1512271 - Allow link.exe to keep linking the stylo tests after ru…
Browse files Browse the repository at this point in the history
…st-lang/rust#54451. r=simonsapin

UltraBlame original commit: 37f24bab080b559284ec7d9108f112f6a97db45c
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent d3a27e4 commit 29f03ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions servo/ports/geckolib/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ fn main() {
for line in r.lines() {
let s = line
.unwrap()
.replace("#[no_mangle]", "")
.replace("pub extern \"C\" fn", "pub unsafe extern \"C\" fn");
w.write_all(s.as_bytes()).unwrap();
w.write_all(b"\n").unwrap();
Expand Down
6 changes: 5 additions & 1 deletion servo/ports/geckolib/tests/servo_function_signatures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ mod error_reporter;
#[path = "../../../ports/geckolib/stylesheet_loader.rs"]
mod stylesheet_loader;

#[allow(non_snake_case, unused_unsafe, private_no_mangle_fns)]
#[allow(non_snake_case, unused_unsafe)]
mod glue {







use geckoservo::*;
include!(concat!(env!("OUT_DIR"), "/glue.rs"));
}

0 comments on commit 29f03ae

Please sign in to comment.