diff options
| author | bors <bors@rust-lang.org> | 2020-10-27 16:32:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-27 16:32:23 +0000 |
| commit | 07e968b640e8ff76fa8be4b48b70ab80ea577800 (patch) | |
| tree | ba7c798f46d3c121615d5f2be68633028d776e50 /library | |
| parent | 2a71e45411881dda12a704d7491428d8a23347c0 (diff) | |
| parent | c791c64e8434b0477de667c1a0fdbe18c928274c (diff) | |
| download | rust-07e968b640e8ff76fa8be4b48b70ab80ea577800.tar.gz rust-07e968b640e8ff76fa8be4b48b70ab80ea577800.zip | |
Auto merge of #76269 - ayrtonm:function-reference-lint, r=oli-obk
added a lint against function references this lint suggests casting function references to `*const ()` closes #75239 r? `@RalfJung`
Diffstat (limited to 'library')
| -rw-r--r-- | library/core/src/fmt/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 0963c6d6cd7..506d7780686 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -920,9 +920,11 @@ pub trait UpperHex { /// assert_eq!(&l_ptr[..2], "0x"); /// ``` #[stable(feature = "rust1", since = "1.0.0")] +#[rustc_diagnostic_item = "pointer_trait"] pub trait Pointer { /// Formats the value using the given formatter. #[stable(feature = "rust1", since = "1.0.0")] + #[rustc_diagnostic_item = "pointer_trait_fmt"] fn fmt(&self, f: &mut Formatter<'_>) -> Result; } |
