{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/49019","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/49019/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/49019/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/49019/events","html_url":"https://github.com/rust-lang/rust/pull/49019","id":305218647,"number":49019,"title":"Introduce a TargetTriple enum to support absolute target paths","user":{"login":"phil-opp","id":1131315,"avatar_url":"https://avatars2.githubusercontent.com/u/1131315?v=4","gravatar_id":"","url":"https://api.github.com/users/phil-opp","html_url":"https://github.com/phil-opp","followers_url":"https://api.github.com/users/phil-opp/followers","following_url":"https://api.github.com/users/phil-opp/following{/other_user}","gists_url":"https://api.github.com/users/phil-opp/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-opp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-opp/subscriptions","organizations_url":"https://api.github.com/users/phil-opp/orgs","repos_url":"https://api.github.com/users/phil-opp/repos","events_url":"https://api.github.com/users/phil-opp/events{/privacy}","received_events_url":"https://api.github.com/users/phil-opp/received_events","type":"User","site_admin":false},"labels":[{"id":583437191,"url":"https://api.github.com/repos/rust-lang/rust/labels/S-waiting-on-bors","name":"S-waiting-on-bors","color":"d3dddd","default":false}],"state":"open","locked":false,"assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars0.githubusercontent.com/u/173127?v=4","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"assignees":[{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars0.githubusercontent.com/u/173127?v=4","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2018-03-14T15:52:00Z","updated_at":"2018-03-28T12:56:16Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/49019","html_url":"https://github.com/rust-lang/rust/pull/49019","diff_url":"https://github.com/rust-lang/rust/pull/49019.diff","patch_url":"https://github.com/rust-lang/rust/pull/49019.patch"},"body":"This PR replaces target triple strings with a `TargetTriple` enum, which represents either a target triple or a path to a JSON target file. The path variant is used if the `--target` argument has a `.json` extension, else the target triple variant is used.\r\n\r\nThe motivation of this PR is support for absolute target paths to avoid the need for setting the `RUST_TARGET_PATH` environment variable (see rust-lang/cargo#4905 for more information). For places where some kind of triple is needed (e.g. in the sysroot folder), we use the file name (without extension).\r\n\r\nFor compatibility, we keep the old behavior of searching for a file named `$(target_triple).json` in `RUST_TARGET_PATH` for non-official target triples."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/376876466","html_url":"https://github.com/rust-lang/rust/pull/49019#issuecomment-376876466","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/49019","id":376876466,"user":{"login":"bors","id":3372342,"avatar_url":"https://avatars2.githubusercontent.com/u/3372342?v=4","gravatar_id":"","url":"https://api.github.com/users/bors","html_url":"https://github.com/bors","followers_url":"https://api.github.com/users/bors/followers","following_url":"https://api.github.com/users/bors/following{/other_user}","gists_url":"https://api.github.com/users/bors/gists{/gist_id}","starred_url":"https://api.github.com/users/bors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors/subscriptions","organizations_url":"https://api.github.com/users/bors/orgs","repos_url":"https://api.github.com/users/bors/repos","events_url":"https://api.github.com/users/bors/events{/privacy}","received_events_url":"https://api.github.com/users/bors/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T12:56:16Z","updated_at":"2018-03-28T12:56:16Z","author_association":"CONTRIBUTOR","body":":hourglass: Testing commit b889f98fba63dfcce68902c3a8c330fdea16a33b with merge d87c19db6df9189a2beb43e7998d0cc5548878b3..."}}
{"actor":{"display_login":"bors"}}