Auto merge of #29215 - fhahn:issue-28157-bad-semicolon, r=alexcrichton
PR for #28157. At the moment, `rustc` emits a warning when a bare semicolon is encountered (could also be a fail, but I think this is a backwards incompatible change). Also I am not sure where the best place for a test for that warning would be. Seems run-pass tests do not check warnings.
This commit is contained in:
commit
8d86d1a4e1
8 changed files with 10 additions and 10 deletions
|
|
@ -28,7 +28,7 @@ pub fn strip_hidden(krate: clean::Crate) -> plugins::PluginResult {
|
|||
let krate = {
|
||||
struct Stripper<'a> {
|
||||
stripped: &'a mut DefIdSet
|
||||
};
|
||||
}
|
||||
impl<'a> fold::DocFolder for Stripper<'a> {
|
||||
fn fold_item(&mut self, i: Item) -> Option<Item> {
|
||||
if i.is_hidden_from_doc() {
|
||||
|
|
@ -60,7 +60,7 @@ pub fn strip_hidden(krate: clean::Crate) -> plugins::PluginResult {
|
|||
let krate = {
|
||||
struct ImplStripper<'a> {
|
||||
stripped: &'a mut DefIdSet
|
||||
};
|
||||
}
|
||||
impl<'a> fold::DocFolder for ImplStripper<'a> {
|
||||
fn fold_item(&mut self, i: Item) -> Option<Item> {
|
||||
if let clean::ImplItem(clean::Impl{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue