Rollup merge of #69077 - jumbatm:fix-comment, r=Dylan-DPC

Fix outdated doc comment.

r? @RalfJung
This commit is contained in:
Yuki Okushi 2020-02-12 18:55:51 +09:00 committed by GitHub
commit 486856f75f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,10 +128,9 @@ pub fn report_as_lint(
}
}
/// Sets the message passed in via `message`, then adds the span labels for you, before applying
/// further modifications in `emit`. It's up to you to call emit(), stash(..), etc. within the
/// `emit` method. If you don't need to do any additional processing, just use
/// struct_generic.
/// Sets the message passed in via `message` and adds span labels before handing control back
/// to `emit` to do any final processing. It's the caller's responsibility to call emit(),
/// stash(), etc. within the `emit` function to dispose of the diagnostic properly.
fn struct_generic(
&self,
tcx: TyCtxtAt<'tcx>,