2022-12-01 17:29:38 +00:00
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:12:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn a(&self) -> &u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &self.b
|
|
|
|
| | ------- help: consider using: `&self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::misnamed-getters` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::misnamed_getters)]`
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:17:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn a_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.b
|
|
|
|
| | ----------- help: consider using: `&mut self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:22:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn b(self) -> u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | self.a
|
|
|
|
| | ------ help: consider using: `self.b`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:27:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn b_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.a
|
|
|
|
| | ----------- help: consider using: `&mut self.b`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:32:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn c(&self) -> &u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &self.b
|
|
|
|
| | ------- help: consider using: `&self.c`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:37:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn c_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.a
|
|
|
|
| | ----------- help: consider using: `&mut self.c`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:49:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn a(&self) -> &u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &self.b
|
|
|
|
| | ------- help: consider using: `&self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:53:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn a_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.b
|
|
|
|
| | ----------- help: consider using: `&mut self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:58:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn b(self) -> u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | self.a
|
|
|
|
| | ------ help: consider using: `self.b`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:63:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn b_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.a
|
|
|
|
| | ----------- help: consider using: `&mut self.b`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:76:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn a_unchecked(&self) -> &u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &self.b
|
|
|
|
| | ------- help: consider using: `&self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:80:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn a_unchecked_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.b
|
|
|
|
| | ----------- help: consider using: `&mut self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:85:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn b_unchecked(self) -> u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | self.a
|
|
|
|
| | ------ help: consider using: `self.b`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:90:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / unsafe fn b_unchecked_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.a
|
|
|
|
| | ----------- help: consider using: `&mut self.b`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:123:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn a(&self) -> &u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &self.b
|
|
|
|
| | ------- help: consider using: `&self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:127:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn a_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.b
|
|
|
|
| | ----------- help: consider using: `&mut self.a`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:132:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn d(&self) -> &u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &self.b
|
|
|
|
| | ------- help: consider using: `&self.d`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: getter function appears to return the wrong field
|
2023-10-17 16:34:27 +00:00
|
|
|
--> $DIR/misnamed_getters.rs:136:5
|
2022-12-01 17:29:38 +00:00
|
|
|
|
|
|
|
|
LL | / fn d_mut(&mut self) -> &mut u8 {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2022-12-01 17:29:38 +00:00
|
|
|
LL | | &mut self.b
|
|
|
|
| | ----------- help: consider using: `&mut self.d`
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: aborting due to 18 previous errors
|
|
|
|
|