{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/650","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/650/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/650/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/650","id":132948677,"number":650,"title":"lint .split(\"_\") on constant single-char string","user":{"login":"llogiq","id":4200835,"avatar_url":"https://avatars.githubusercontent.com/u/4200835?v=3","gravatar_id":"","url":"https://api.github.com/users/llogiq","html_url":"https://github.com/llogiq","followers_url":"https://api.github.com/users/llogiq/followers","following_url":"https://api.github.com/users/llogiq/following{/other_user}","gists_url":"https://api.github.com/users/llogiq/gists{/gist_id}","starred_url":"https://api.github.com/users/llogiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llogiq/subscriptions","organizations_url":"https://api.github.com/users/llogiq/orgs","repos_url":"https://api.github.com/users/llogiq/repos","events_url":"https://api.github.com/users/llogiq/events{/privacy}","received_events_url":"https://api.github.com/users/llogiq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/E-easy","name":"E-easy","color":"009800"},{"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/L-lint","name":"L-lint","color":"fef2c0"},{"url":"https://api.github.com/repos/Manishearth/rust-clippy/labels/T-middle","name":"T-middle","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-11T11:33:13Z","updated_at":"2016-02-14T18:44:37Z","closed_at":null,"body":"Suggest `_.split('x')` instead. Should be easy enough with const_eval."},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/183948724","html_url":"https://github.com/Manishearth/rust-clippy/issues/650#issuecomment-183948724","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/650","id":183948724,"user":{"login":"Manishearth","id":1617736,"avatar_url":"https://avatars.githubusercontent.com/u/1617736?v=3","gravatar_id":"","url":"https://api.github.com/users/Manishearth","html_url":"https://github.com/Manishearth","followers_url":"https://api.github.com/users/Manishearth/followers","following_url":"https://api.github.com/users/Manishearth/following{/other_user}","gists_url":"https://api.github.com/users/Manishearth/gists{/gist_id}","starred_url":"https://api.github.com/users/Manishearth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manishearth/subscriptions","organizations_url":"https://api.github.com/users/Manishearth/orgs","repos_url":"https://api.github.com/users/Manishearth/repos","events_url":"https://api.github.com/users/Manishearth/events{/privacy}","received_events_url":"https://api.github.com/users/Manishearth/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T18:44:37Z","updated_at":"2016-02-14T18:44:37Z","body":"Checking the type is likely a more expensive operation. But if you can figure out a way to do it cleanly (likely involves obtaining the `ty::Ty` for the function, getting the `ty::Ty` for the arg from that, and then looking at the substs)"}}