{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/comments/32074711","id":32074711,"diff_hunk":"@@ -141,3 +146,12 @@ pub unsafe fn _Unwind_RaiseException(exc: *mut _Unwind_Exception)\n                                      -> _Unwind_Reason_Code {\n     _Unwind_SjLj_RaiseException(exc)\n }\n+\n+#[cfg(target_os = \"nacl\")]\n+extern \"C\" {\n+    #[link_name = \"__pnacl_eh_sjlj_Unwind_RaiseException\"]","path":"src/libstd/rt/libunwind.rs","position":37,"original_position":37,"commit_id":"e1fd9bd915a216cd320442f1e6ff2ffbaa822953","original_commit_id":"e1fd9bd915a216cd320442f1e6ff2ffbaa822953","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"body":"I think you should be able to put these attributes on the above definitions with a `#[cfg_attr]` to apply the `link_name`","created_at":"2015-06-09T23:10:47Z","updated_at":"2015-06-09T23:10:47Z","html_url":"https://github.com/rust-lang/rust/pull/26148#discussion_r32074711","pull_request_url":"https://api.github.com/repos/rust-lang/rust/pulls/26148","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments/32074711"},"html":{"href":"https://github.com/rust-lang/rust/pull/26148#discussion_r32074711"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/26148"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/26148","id":37300911,"html_url":"https://github.com/rust-lang/rust/pull/26148","diff_url":"https://github.com/rust-lang/rust/pull/26148.diff","patch_url":"https://github.com/rust-lang/rust/pull/26148.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/26148","number":26148,"state":"open","locked":false,"title":"Port libstd to PNaCl.","user":{"login":"DiamondLovesYou","id":650357,"avatar_url":"https://avatars.githubusercontent.com/u/650357?v=3","gravatar_id":"","url":"https://api.github.com/users/DiamondLovesYou","html_url":"https://github.com/DiamondLovesYou","followers_url":"https://api.github.com/users/DiamondLovesYou/followers","following_url":"https://api.github.com/users/DiamondLovesYou/following{/other_user}","gists_url":"https://api.github.com/users/DiamondLovesYou/gists{/gist_id}","starred_url":"https://api.github.com/users/DiamondLovesYou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiamondLovesYou/subscriptions","organizations_url":"https://api.github.com/users/DiamondLovesYou/orgs","repos_url":"https://api.github.com/users/DiamondLovesYou/repos","events_url":"https://api.github.com/users/DiamondLovesYou/events{/privacy}","received_events_url":"https://api.github.com/users/DiamondLovesYou/received_events","type":"User","site_admin":false},"body":"Modify libstd for targeting PNaCl/JS. PNaCl's newlib isn't completely vanilla (pthreads, for example), so I've for the most part kept to `#[cfg]`ing on `target_os`.\r\n\r\nThis PR is the first of many.","created_at":"2015-06-09T21:16:54Z","updated_at":"2015-06-09T23:10:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18869996f3f0e4bbe11d9769d4546462ab679fb5","assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rust/pulls/26148/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/26148/comments","review_comment_url":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/26148/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/e1fd9bd915a216cd320442f1e6ff2ffbaa822953","head":{"label":"DiamondLovesYou:libstd-pnacl","ref":"libstd-pnacl","sha":"e1fd9bd915a216cd320442f1e6ff2ffbaa822953","user":{"login":"DiamondLovesYou","id":650357,"avatar_url":"https://avatars.githubusercontent.com/u/650357?v=3","gravatar_id":"","url":"https://api.github.com/users/DiamondLovesYou","html_url":"https://github.com/DiamondLovesYou","followers_url":"https://api.github.com/users/DiamondLovesYou/followers","following_url":"https://api.github.com/users/DiamondLovesYou/following{/other_user}","gists_url":"https://api.github.com/users/DiamondLovesYou/gists{/gist_id}","starred_url":"https://api.github.com/users/DiamondLovesYou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiamondLovesYou/subscriptions","organizations_url":"https://api.github.com/users/DiamondLovesYou/orgs","repos_url":"https://api.github.com/users/DiamondLovesYou/repos","events_url":"https://api.github.com/users/DiamondLovesYou/events{/privacy}","received_events_url":"https://api.github.com/users/DiamondLovesYou/received_events","type":"User","site_admin":false},"repo":{"id":16129421,"name":"rust","full_name":"DiamondLovesYou/rust","owner":{"login":"DiamondLovesYou","id":650357,"avatar_url":"https://avatars.githubusercontent.com/u/650357?v=3","gravatar_id":"","url":"https://api.github.com/users/DiamondLovesYou","html_url":"https://github.com/DiamondLovesYou","followers_url":"https://api.github.com/users/DiamondLovesYou/followers","following_url":"https://api.github.com/users/DiamondLovesYou/following{/other_user}","gists_url":"https://api.github.com/users/DiamondLovesYou/gists{/gist_id}","starred_url":"https://api.github.com/users/DiamondLovesYou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiamondLovesYou/subscriptions","organizations_url":"https://api.github.com/users/DiamondLovesYou/orgs","repos_url":"https://api.github.com/users/DiamondLovesYou/repos","events_url":"https://api.github.com/users/DiamondLovesYou/events{/privacy}","received_events_url":"https://api.github.com/users/DiamondLovesYou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DiamondLovesYou/rust","description":"a safe, concurrent, practical language - PNaCl fork","fork":true,"url":"https://api.github.com/repos/DiamondLovesYou/rust","forks_url":"https://api.github.com/repos/DiamondLovesYou/rust/forks","keys_url":"https://api.github.com/repos/DiamondLovesYou/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DiamondLovesYou/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DiamondLovesYou/rust/teams","hooks_url":"https://api.github.com/repos/DiamondLovesYou/rust/hooks","issue_events_url":"https://api.github.com/repos/DiamondLovesYou/rust/issues/events{/number}","events_url":"https://api.github.com/repos/DiamondLovesYou/rust/events","assignees_url":"https://api.github.com/repos/DiamondLovesYou/rust/assignees{/user}","branches_url":"https://api.github.com/repos/DiamondLovesYou/rust/branches{/branch}","tags_url":"https://api.github.com/repos/DiamondLovesYou/rust/tags","blobs_url":"https://api.github.com/repos/DiamondLovesYou/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DiamondLovesYou/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DiamondLovesYou/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/DiamondLovesYou/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DiamondLovesYou/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/DiamondLovesYou/rust/languages","stargazers_url":"https://api.github.com/repos/DiamondLovesYou/rust/stargazers","contributors_url":"https://api.github.com/repos/DiamondLovesYou/rust/contributors","subscribers_url":"https://api.github.com/repos/DiamondLovesYou/rust/subscribers","subscription_url":"https://api.github.com/repos/DiamondLovesYou/rust/subscription","commits_url":"https://api.github.com/repos/DiamondLovesYou/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/DiamondLovesYou/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/DiamondLovesYou/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/DiamondLovesYou/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/DiamondLovesYou/rust/contents/{+path}","compare_url":"https://api.github.com/repos/DiamondLovesYou/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DiamondLovesYou/rust/merges","archive_url":"https://api.github.com/repos/DiamondLovesYou/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DiamondLovesYou/rust/downloads","issues_url":"https://api.github.com/repos/DiamondLovesYou/rust/issues{/number}","pulls_url":"https://api.github.com/repos/DiamondLovesYou/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/DiamondLovesYou/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/DiamondLovesYou/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DiamondLovesYou/rust/labels{/name}","releases_url":"https://api.github.com/repos/DiamondLovesYou/rust/releases{/id}","created_at":"2014-01-22T05:06:28Z","updated_at":"2015-05-22T05:54:38Z","pushed_at":"2015-06-09T21:44:52Z","git_url":"git://github.com/DiamondLovesYou/rust.git","ssh_url":"git@github.com:DiamondLovesYou/rust.git","clone_url":"https://github.com/DiamondLovesYou/rust.git","svn_url":"https://github.com/DiamondLovesYou/rust","homepage":"http://www.rust-lang.org","size":302513,"stargazers_count":11,"watchers_count":11,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":11,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"8a3f5af8c98e123247a2847c52474f42874d23fa","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":724712,"name":"rust","full_name":"rust-lang/rust","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/rust","description":"A safe, concurrent, practical language.","fork":false,"url":"https://api.github.com/repos/rust-lang/rust","forks_url":"https://api.github.com/repos/rust-lang/rust/forks","keys_url":"https://api.github.com/repos/rust-lang/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/rust/teams","hooks_url":"https://api.github.com/repos/rust-lang/rust/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/rust/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/rust/events","assignees_url":"https://api.github.com/repos/rust-lang/rust/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/rust/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/rust/tags","blobs_url":"https://api.github.com/repos/rust-lang/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/rust/languages","stargazers_url":"https://api.github.com/repos/rust-lang/rust/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/rust/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/rust/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/rust/subscription","commits_url":"https://api.github.com/repos/rust-lang/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/rust/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/rust/merges","archive_url":"https://api.github.com/repos/rust-lang/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/rust/downloads","issues_url":"https://api.github.com/repos/rust-lang/rust/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/rust/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/rust/releases{/id}","created_at":"2010-06-16T20:39:03Z","updated_at":"2015-06-09T22:46:33Z","pushed_at":"2015-06-09T22:40:19Z","git_url":"git://github.com/rust-lang/rust.git","ssh_url":"git@github.com:rust-lang/rust.git","clone_url":"https://github.com/rust-lang/rust.git","svn_url":"https://github.com/rust-lang/rust","homepage":"http://www.rust-lang.org","size":622284,"stargazers_count":12119,"watchers_count":12119,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2330,"mirror_url":null,"open_issues_count":2125,"forks":2330,"open_issues":2125,"watchers":12119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/26148"},"html":{"href":"https://github.com/rust-lang/rust/pull/26148"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/26148"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/26148/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/26148/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/26148/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/e1fd9bd915a216cd320442f1e6ff2ffbaa822953"}}}}