Skip to content

Commit

Permalink
Add an exception for no_mangle, it's an attribute, not a link
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Jun 16, 2019
1 parent 83d8bce commit 4223d38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/src/bin/link2print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ fn parse_links((buffer, ref_map): (String, HashMap<String, String>)) -> String {
if name.starts_with("derive(") ||
name.starts_with("profile") ||
name.starts_with("test") ||
name.starts_with("no_mangle") ||
error_code.is_match(&name) {
return name
}
Expand Down

0 comments on commit 4223d38

Please sign in to comment.