{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/27489","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/27489/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/27489/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/27489/events","html_url":"https://github.com/rust-lang/rust/issues/27489","id":98676718,"number":27489,"title":"unescaped quotation marks in macro-processed doc comments","user":{"login":"durka","id":47007,"avatar_url":"https://avatars.githubusercontent.com/u/47007?v=3","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-rustdoc","name":"A-rustdoc","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-03T05:45:38Z","updated_at":"2015-08-03T09:07:31Z","closed_at":null,"body":"It seems like one of the recent fix to macro handling of doc comments (perhaps [this](https://github.com/rust-lang/rust/pull/26777)) was a bit overzealous in not parsing the string, so that embedded quotation marks don't get escaped. It doesn't show up unless `stringify!` is called, but then it shows invalid code.\r\n\r\nCompare the behavior of this [playpen](http://is.gd/APQWUe) on nightly vs beta/std (ignoring the initial slashes which are due to #23812 and already fixed)."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/127171283","html_url":"https://github.com/rust-lang/rust/issues/27489#issuecomment-127171283","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/27489","id":127171283,"user":{"login":"barosl","id":573768,"avatar_url":"https://avatars.githubusercontent.com/u/573768?v=3","gravatar_id":"","url":"https://api.github.com/users/barosl","html_url":"https://github.com/barosl","followers_url":"https://api.github.com/users/barosl/followers","following_url":"https://api.github.com/users/barosl/following{/other_user}","gists_url":"https://api.github.com/users/barosl/gists{/gist_id}","starred_url":"https://api.github.com/users/barosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barosl/subscriptions","organizations_url":"https://api.github.com/users/barosl/orgs","repos_url":"https://api.github.com/users/barosl/repos","events_url":"https://api.github.com/users/barosl/events{/privacy}","received_events_url":"https://api.github.com/users/barosl/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T09:07:31Z","updated_at":"2015-08-03T09:07:31Z","body":"Also, not directly related to this issue, but is the leading space in the doc string intentional? It seems that the space in `/// comment` was simply preserved in the final doc string, so it didn't lose any information, but it's just not very... pretty."}}