mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
clippy: {Meta,Pointee,}Sized in non-minicore
One clippy test is `no_core` and needs to have `MetaSized` and `PointeeSized` added to it.
This commit is contained in:
@@ -7,8 +7,14 @@
|
||||
#[link(name = "c")]
|
||||
unsafe extern "C" {}
|
||||
|
||||
#[lang = "pointee_sized"]
|
||||
pub trait PointeeSized {}
|
||||
|
||||
#[lang = "meta_sized"]
|
||||
pub trait MetaSized: PointeeSized {}
|
||||
|
||||
#[lang = "sized"]
|
||||
pub trait Sized {}
|
||||
pub trait Sized: MetaSized {}
|
||||
#[lang = "copy"]
|
||||
pub trait Copy {}
|
||||
#[lang = "freeze"]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
|
||||
--> tests/ui/def_id_nocore.rs:27:19
|
||||
--> tests/ui/def_id_nocore.rs:33:19
|
||||
|
|
||||
LL | pub fn as_ref(self) -> &'static str {
|
||||
| ^^^^
|
||||
|
||||
Reference in New Issue
Block a user