{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/dxr/pulls/comments/44083424","id":44083424,"diff_hunk":"@@ -0,0 +1,15 @@\n+from dxr.testing import SingleFileTestCase\n+\n+class RustSingleFileTestCase(SingleFileTestCase):\n+    \"\"\"Test case suited to testing the Rust plugin.\"\"\"\n+    source_filename = 'mod.rs'\n+\n+    @classmethod\n+    def config_input(cls, config_dir_path):\n+        config = super(RustSingleFileTestCase, cls).config_input(config_dir_path)\n+\n+        config['DXR']['enabled_plugins'] = 'pygmentize rust'\n+        config['DXR']['disabled_plugins'] = 'clang'\n+        config['code']['build_command'] = '$RUSTC mod.rs'","path":"dxr/plugins/rust/tests/__init__.py","position":13,"original_position":13,"commit_id":"d9cb9b8a12bd16ba12224d6ad4f76253f75b27f8","original_commit_id":"d9cb9b8a12bd16ba12224d6ad4f76253f75b27f8","user":{"login":"erikrose","id":295816,"avatar_url":"https://avatars.githubusercontent.com/u/295816?v=3","gravatar_id":"","url":"https://api.github.com/users/erikrose","html_url":"https://github.com/erikrose","followers_url":"https://api.github.com/users/erikrose/followers","following_url":"https://api.github.com/users/erikrose/following{/other_user}","gists_url":"https://api.github.com/users/erikrose/gists{/gist_id}","starred_url":"https://api.github.com/users/erikrose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikrose/subscriptions","organizations_url":"https://api.github.com/users/erikrose/orgs","repos_url":"https://api.github.com/users/erikrose/repos","events_url":"https://api.github.com/users/erikrose/events{/privacy}","received_events_url":"https://api.github.com/users/erikrose/received_events","type":"User","site_admin":false},"body":"On the Vagrant box, $RUSTC is empty, so we'll need to rig a way to fall back to \"rustc\" like the indexing plugin does.","created_at":"2015-11-05T23:07:18Z","updated_at":"2015-11-05T23:07:18Z","html_url":"https://github.com/mozilla/dxr/pull/483#discussion_r44083424","pull_request_url":"https://api.github.com/repos/mozilla/dxr/pulls/483","_links":{"self":{"href":"https://api.github.com/repos/mozilla/dxr/pulls/comments/44083424"},"html":{"href":"https://github.com/mozilla/dxr/pull/483#discussion_r44083424"},"pull_request":{"href":"https://api.github.com/repos/mozilla/dxr/pulls/483"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/dxr/pulls/483","id":49647519,"html_url":"https://github.com/mozilla/dxr/pull/483","diff_url":"https://github.com/mozilla/dxr/pull/483.diff","patch_url":"https://github.com/mozilla/dxr/pull/483.patch","issue_url":"https://api.github.com/repos/mozilla/dxr/issues/483","number":483,"state":"open","locked":false,"title":"Fix a bug which causes field and variable references to be self-links","user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"body":"Can we test this? It only manifests when you click 'jump to definition' on a variable's menu.","created_at":"2015-11-04T04:33:55Z","updated_at":"2015-11-05T23:07:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e3778c9525eabbe6c1c7709e4e121aff047c8a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/dxr/pulls/483/commits","review_comments_url":"https://api.github.com/repos/mozilla/dxr/pulls/483/comments","review_comment_url":"https://api.github.com/repos/mozilla/dxr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/dxr/issues/483/comments","statuses_url":"https://api.github.com/repos/mozilla/dxr/statuses/d9cb9b8a12bd16ba12224d6ad4f76253f75b27f8","head":{"label":"nrc:rust-field","ref":"rust-field","sha":"d9cb9b8a12bd16ba12224d6ad4f76253f75b27f8","user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"repo":{"id":11175623,"name":"dxr","full_name":"nrc/dxr","owner":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nrc/dxr","description":"An intelligent source code browser","fork":true,"url":"https://api.github.com/repos/nrc/dxr","forks_url":"https://api.github.com/repos/nrc/dxr/forks","keys_url":"https://api.github.com/repos/nrc/dxr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nrc/dxr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nrc/dxr/teams","hooks_url":"https://api.github.com/repos/nrc/dxr/hooks","issue_events_url":"https://api.github.com/repos/nrc/dxr/issues/events{/number}","events_url":"https://api.github.com/repos/nrc/dxr/events","assignees_url":"https://api.github.com/repos/nrc/dxr/assignees{/user}","branches_url":"https://api.github.com/repos/nrc/dxr/branches{/branch}","tags_url":"https://api.github.com/repos/nrc/dxr/tags","blobs_url":"https://api.github.com/repos/nrc/dxr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nrc/dxr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nrc/dxr/git/refs{/sha}","trees_url":"https://api.github.com/repos/nrc/dxr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nrc/dxr/statuses/{sha}","languages_url":"https://api.github.com/repos/nrc/dxr/languages","stargazers_url":"https://api.github.com/repos/nrc/dxr/stargazers","contributors_url":"https://api.github.com/repos/nrc/dxr/contributors","subscribers_url":"https://api.github.com/repos/nrc/dxr/subscribers","subscription_url":"https://api.github.com/repos/nrc/dxr/subscription","commits_url":"https://api.github.com/repos/nrc/dxr/commits{/sha}","git_commits_url":"https://api.github.com/repos/nrc/dxr/git/commits{/sha}","comments_url":"https://api.github.com/repos/nrc/dxr/comments{/number}","issue_comment_url":"https://api.github.com/repos/nrc/dxr/issues/comments{/number}","contents_url":"https://api.github.com/repos/nrc/dxr/contents/{+path}","compare_url":"https://api.github.com/repos/nrc/dxr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nrc/dxr/merges","archive_url":"https://api.github.com/repos/nrc/dxr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nrc/dxr/downloads","issues_url":"https://api.github.com/repos/nrc/dxr/issues{/number}","pulls_url":"https://api.github.com/repos/nrc/dxr/pulls{/number}","milestones_url":"https://api.github.com/repos/nrc/dxr/milestones{/number}","notifications_url":"https://api.github.com/repos/nrc/dxr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nrc/dxr/labels{/name}","releases_url":"https://api.github.com/repos/nrc/dxr/releases{/id}","created_at":"2013-07-04T11:58:21Z","updated_at":"2015-06-14T09:24:32Z","pushed_at":"2015-11-05T22:59:22Z","git_url":"git://github.com/nrc/dxr.git","ssh_url":"git@github.com:nrc/dxr.git","clone_url":"https://github.com/nrc/dxr.git","svn_url":"https://github.com/nrc/dxr","homepage":"","size":11220,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"b1dfbfb4b67b0ef0822bbdb5d8a06fa8d7d03a58","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1795049,"name":"dxr","full_name":"mozilla/dxr","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/dxr","description":"Powerful search for large codebases","fork":false,"url":"https://api.github.com/repos/mozilla/dxr","forks_url":"https://api.github.com/repos/mozilla/dxr/forks","keys_url":"https://api.github.com/repos/mozilla/dxr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/dxr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/dxr/teams","hooks_url":"https://api.github.com/repos/mozilla/dxr/hooks","issue_events_url":"https://api.github.com/repos/mozilla/dxr/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/dxr/events","assignees_url":"https://api.github.com/repos/mozilla/dxr/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/dxr/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/dxr/tags","blobs_url":"https://api.github.com/repos/mozilla/dxr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/dxr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/dxr/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/dxr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/dxr/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/dxr/languages","stargazers_url":"https://api.github.com/repos/mozilla/dxr/stargazers","contributors_url":"https://api.github.com/repos/mozilla/dxr/contributors","subscribers_url":"https://api.github.com/repos/mozilla/dxr/subscribers","subscription_url":"https://api.github.com/repos/mozilla/dxr/subscription","commits_url":"https://api.github.com/repos/mozilla/dxr/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/dxr/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/dxr/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/dxr/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/dxr/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/dxr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/dxr/merges","archive_url":"https://api.github.com/repos/mozilla/dxr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/dxr/downloads","issues_url":"https://api.github.com/repos/mozilla/dxr/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/dxr/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/dxr/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/dxr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/dxr/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/dxr/releases{/id}","created_at":"2011-05-24T18:52:38Z","updated_at":"2015-11-05T12:49:38Z","pushed_at":"2015-11-05T22:59:22Z","git_url":"git://github.com/mozilla/dxr.git","ssh_url":"git@github.com:mozilla/dxr.git","clone_url":"https://github.com/mozilla/dxr.git","svn_url":"https://github.com/mozilla/dxr","homepage":"https://dxr.readthedocs.org/","size":15326,"stargazers_count":359,"watchers_count":359,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":136,"mirror_url":null,"open_issues_count":34,"forks":136,"open_issues":34,"watchers":359,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/dxr/pulls/483"},"html":{"href":"https://github.com/mozilla/dxr/pull/483"},"issue":{"href":"https://api.github.com/repos/mozilla/dxr/issues/483"},"comments":{"href":"https://api.github.com/repos/mozilla/dxr/issues/483/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/dxr/pulls/483/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/dxr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/dxr/pulls/483/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/dxr/statuses/d9cb9b8a12bd16ba12224d6ad4f76253f75b27f8"}}}}