Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 1 | error: missing documentation for a type alias |
| 2 | --> $DIR/lint-attr-everywhere-late.rs:35:1 |
| 3 | | |
| 4 | LL | pub type MissingDocType = i32; |
| 5 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | | |
| 7 | note: the lint level is defined here |
| 8 | --> $DIR/lint-attr-everywhere-late.rs:34:8 |
| 9 | | |
| 10 | LL | #[deny(missing_docs)] |
| 11 | | ^^^^^^^^^^^^ |
| 12 | |
| 13 | error: missing documentation for a struct |
| 14 | --> $DIR/lint-attr-everywhere-late.rs:43:1 |
| 15 | | |
| 16 | LL | pub struct ItemOuter; |
| 17 | | ^^^^^^^^^^^^^^^^^^^^ |
| 18 | | |
| 19 | note: the lint level is defined here |
| 20 | --> $DIR/lint-attr-everywhere-late.rs:42:8 |
| 21 | | |
| 22 | LL | #[deny(missing_docs)] |
| 23 | | ^^^^^^^^^^^^ |
| 24 | |
| 25 | error: missing documentation for a module |
| 26 | --> $DIR/lint-attr-everywhere-late.rs:45:1 |
| 27 | | |
| 28 | LL | pub mod module_inner { |
| 29 | | ^^^^^^^^^^^^^^^^^^^^ |
| 30 | | |
| 31 | note: the lint level is defined here |
| 32 | --> $DIR/lint-attr-everywhere-late.rs:46:13 |
| 33 | | |
| 34 | LL | #![deny(missing_docs)] |
| 35 | | ^^^^^^^^^^^^ |
| 36 | |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 37 | error: missing documentation for an associated function |
| 38 | --> $DIR/lint-attr-everywhere-late.rs:54:5 |
| 39 | | |
| 40 | LL | pub fn inherent_denied_from_inner() {} |
| 41 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 42 | | |
| 43 | note: the lint level is defined here |
| 44 | --> $DIR/lint-attr-everywhere-late.rs:52:13 |
| 45 | | |
| 46 | LL | #![deny(missing_docs)] |
| 47 | | ^^^^^^^^^^^^ |
| 48 | |
| 49 | error: missing documentation for an associated function |
| 50 | --> $DIR/lint-attr-everywhere-late.rs:59:5 |
| 51 | | |
| 52 | LL | pub fn inherent_fn() {} |
| 53 | | ^^^^^^^^^^^^^^^^^^^^ |
| 54 | | |
| 55 | note: the lint level is defined here |
| 56 | --> $DIR/lint-attr-everywhere-late.rs:58:12 |
| 57 | | |
| 58 | LL | #[deny(missing_docs)] |
| 59 | | ^^^^^^^^^^^^ |
| 60 | |
| 61 | error: missing documentation for an associated constant |
| 62 | --> $DIR/lint-attr-everywhere-late.rs:62:5 |
| 63 | | |
| 64 | LL | pub const INHERENT_CONST: i32 = 1; |
| 65 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 66 | | |
| 67 | note: the lint level is defined here |
| 68 | --> $DIR/lint-attr-everywhere-late.rs:61:12 |
| 69 | | |
| 70 | LL | #[deny(missing_docs)] |
| 71 | | ^^^^^^^^^^^^ |
| 72 | |
| 73 | error: missing documentation for a trait |
| 74 | --> $DIR/lint-attr-everywhere-late.rs:65:1 |
| 75 | | |
| 76 | LL | pub trait TraitInner { |
| 77 | | ^^^^^^^^^^^^^^^^^^^^ |
| 78 | | |
| 79 | note: the lint level is defined here |
| 80 | --> $DIR/lint-attr-everywhere-late.rs:66:13 |
| 81 | | |
| 82 | LL | #![deny(missing_docs)] |
| 83 | | ^^^^^^^^^^^^ |
| 84 | |
| 85 | error: missing documentation for a trait |
| 86 | --> $DIR/lint-attr-everywhere-late.rs:69:1 |
| 87 | | |
| 88 | LL | pub trait AssociatedTraitInner { |
| 89 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 90 | | |
| 91 | note: the lint level is defined here |
| 92 | --> $DIR/lint-attr-everywhere-late.rs:70:13 |
| 93 | | |
| 94 | LL | #![deny(missing_docs)] |
| 95 | | ^^^^^^^^^^^^ |
| 96 | |
| 97 | error: missing documentation for an associated function |
| 98 | --> $DIR/lint-attr-everywhere-late.rs:72:5 |
| 99 | | |
| 100 | LL | fn denied_from_inner() {} |
| 101 | | ^^^^^^^^^^^^^^^^^^^^^^ |
| 102 | |
| 103 | error: missing documentation for an associated function |
| 104 | --> $DIR/lint-attr-everywhere-late.rs:79:5 |
| 105 | | |
| 106 | LL | fn assoc_fn() {} |
| 107 | | ^^^^^^^^^^^^^ |
| 108 | | |
| 109 | note: the lint level is defined here |
| 110 | --> $DIR/lint-attr-everywhere-late.rs:78:12 |
| 111 | | |
| 112 | LL | #[deny(missing_docs)] |
| 113 | | ^^^^^^^^^^^^ |
| 114 | |
| 115 | error: missing documentation for an associated constant |
| 116 | --> $DIR/lint-attr-everywhere-late.rs:82:5 |
| 117 | | |
| 118 | LL | const ASSOC_CONST: u8 = 1; |
| 119 | | ^^^^^^^^^^^^^^^^^^^^^ |
| 120 | | |
| 121 | note: the lint level is defined here |
| 122 | --> $DIR/lint-attr-everywhere-late.rs:81:12 |
| 123 | | |
| 124 | LL | #[deny(missing_docs)] |
| 125 | | ^^^^^^^^^^^^ |
| 126 | |
| 127 | error: missing documentation for an associated type |
| 128 | --> $DIR/lint-attr-everywhere-late.rs:85:5 |
| 129 | | |
| 130 | LL | type AssocType; |
| 131 | | ^^^^^^^^^^^^^^ |
| 132 | | |
| 133 | note: the lint level is defined here |
| 134 | --> $DIR/lint-attr-everywhere-late.rs:84:12 |
| 135 | | |
| 136 | LL | #[deny(missing_docs)] |
| 137 | | ^^^^^^^^^^^^ |
| 138 | |
Eric Huss | 7b36047 | 2022-07-06 00:42:39 | [diff] [blame] | 139 | error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped |
| 140 | --> $DIR/lint-attr-everywhere-late.rs:93:38 |
| 141 | | |
| 142 | LL | fn denied_from_inner(_x: Box<dyn Drop>) {} |
| 143 | | ^^^^ |
| 144 | | |
| 145 | note: the lint level is defined here |
| 146 | --> $DIR/lint-attr-everywhere-late.rs:91:13 |
| 147 | | |
| 148 | LL | #![deny(dyn_drop)] |
| 149 | | ^^^^^^^^ |
| 150 | |
| 151 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
| 152 | --> $DIR/lint-attr-everywhere-late.rs:96:21 |
| 153 | | |
| 154 | LL | fn assoc_fn() { discriminant::<i32>(&123); } |
| 155 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 156 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 157 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Eric Huss | 7b36047 | 2022-07-06 00:42:39 | [diff] [blame] | 158 | --> $DIR/lint-attr-everywhere-late.rs:96:41 |
| 159 | | |
| 160 | LL | fn assoc_fn() { discriminant::<i32>(&123); } |
| 161 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 162 | note: the lint level is defined here |
| 163 | --> $DIR/lint-attr-everywhere-late.rs:95:12 |
| 164 | | |
| 165 | LL | #[deny(enum_intrinsics_non_enums)] |
| 166 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 7b36047 | 2022-07-06 00:42:39 | [diff] [blame] | 167 | |
| 168 | error: literal out of range for `u8` |
| 169 | --> $DIR/lint-attr-everywhere-late.rs:98:59 |
| 170 | | |
| 171 | LL | #[deny(overflowing_literals)] const ASSOC_CONST: u8 = 1000; |
| 172 | | ^^^^ |
| 173 | | |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 174 | = note: the literal `1000` does not fit into the type `u8` whose range is `0..=255` |
Eric Huss | 7b36047 | 2022-07-06 00:42:39 | [diff] [blame] | 175 | note: the lint level is defined here |
| 176 | --> $DIR/lint-attr-everywhere-late.rs:98:12 |
| 177 | | |
| 178 | LL | #[deny(overflowing_literals)] const ASSOC_CONST: u8 = 1000; |
| 179 | | ^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 7b36047 | 2022-07-06 00:42:39 | [diff] [blame] | 180 | |
Camille GILLOT | 7c34f1a | 2023-07-15 16:43:45 | [diff] [blame] | 181 | error: missing documentation for a variant |
| 182 | --> $DIR/lint-attr-everywhere-late.rs:112:5 |
| 183 | | |
| 184 | LL | Variant1, |
| 185 | | ^^^^^^^^ |
| 186 | | |
| 187 | note: the lint level is defined here |
| 188 | --> $DIR/lint-attr-everywhere-late.rs:111:12 |
| 189 | | |
| 190 | LL | #[deny(missing_docs)] |
| 191 | | ^^^^^^^^^^^^ |
| 192 | |
Eric Huss | 7b36047 | 2022-07-06 00:42:39 | [diff] [blame] | 193 | error: variable `PARAM` should have a snake case name |
| 194 | --> $DIR/lint-attr-everywhere-late.rs:131:37 |
| 195 | | |
| 196 | LL | fn function(#[deny(non_snake_case)] PARAM: i32) {} |
| 197 | | ^^^^^ help: convert the identifier to snake case: `param` |
| 198 | | |
| 199 | note: the lint level is defined here |
| 200 | --> $DIR/lint-attr-everywhere-late.rs:131:20 |
| 201 | | |
| 202 | LL | fn function(#[deny(non_snake_case)] PARAM: i32) {} |
| 203 | | ^^^^^^^^^^^^^^ |
| 204 | |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 205 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
| 206 | --> $DIR/lint-attr-everywhere-late.rs:139:13 |
| 207 | | |
| 208 | LL | let _ = discriminant::<i32>(&123); |
| 209 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 210 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 211 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 212 | --> $DIR/lint-attr-everywhere-late.rs:139:33 |
| 213 | | |
| 214 | LL | let _ = discriminant::<i32>(&123); |
| 215 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 216 | note: the lint level is defined here |
| 217 | --> $DIR/lint-attr-everywhere-late.rs:138:12 |
| 218 | | |
| 219 | LL | #[deny(enum_intrinsics_non_enums)] |
| 220 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 221 | |
Eric Huss | 7b36047 | 2022-07-06 00:42:39 | [diff] [blame] | 222 | error: variable `PARAM` should have a snake case name |
| 223 | --> $DIR/lint-attr-everywhere-late.rs:145:44 |
| 224 | | |
| 225 | LL | let closure = |#[deny(non_snake_case)] PARAM: i32| {}; |
| 226 | | ^^^^^ help: convert the identifier to snake case: `param` |
| 227 | | |
| 228 | note: the lint level is defined here |
| 229 | --> $DIR/lint-attr-everywhere-late.rs:145:27 |
| 230 | | |
| 231 | LL | let closure = |#[deny(non_snake_case)] PARAM: i32| {}; |
| 232 | | ^^^^^^^^^^^^^^ |
| 233 | |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 234 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
| 235 | --> $DIR/lint-attr-everywhere-late.rs:155:13 |
| 236 | | |
| 237 | LL | discriminant::<i32>(&123); |
| 238 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 239 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 240 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 241 | --> $DIR/lint-attr-everywhere-late.rs:155:33 |
| 242 | | |
| 243 | LL | discriminant::<i32>(&123); |
| 244 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 245 | note: the lint level is defined here |
| 246 | --> $DIR/lint-attr-everywhere-late.rs:153:17 |
| 247 | | |
| 248 | LL | #![deny(enum_intrinsics_non_enums)] |
| 249 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 250 | |
| 251 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
| 252 | --> $DIR/lint-attr-everywhere-late.rs:161:13 |
| 253 | | |
| 254 | LL | discriminant::<i32>(&123); |
| 255 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 256 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 257 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 258 | --> $DIR/lint-attr-everywhere-late.rs:161:33 |
| 259 | | |
| 260 | LL | discriminant::<i32>(&123); |
| 261 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 262 | note: the lint level is defined here |
| 263 | --> $DIR/lint-attr-everywhere-late.rs:159:16 |
| 264 | | |
| 265 | LL | #[deny(enum_intrinsics_non_enums)] |
| 266 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 267 | |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 268 | error: variable `ARM_VAR` should have a snake case name |
| 269 | --> $DIR/lint-attr-everywhere-late.rs:167:9 |
| 270 | | |
| 271 | LL | ARM_VAR => {} |
| 272 | | ^^^^^^^ help: convert the identifier to snake case: `arm_var` |
| 273 | | |
| 274 | note: the lint level is defined here |
| 275 | --> $DIR/lint-attr-everywhere-late.rs:166:16 |
| 276 | | |
| 277 | LL | #[deny(non_snake_case)] |
| 278 | | ^^^^^^^^^^^^^^ |
| 279 | |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 280 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 281 | --> $DIR/lint-attr-everywhere-late.rs:173:9 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 282 | | |
| 283 | LL | discriminant::<i32>(&123); |
| 284 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 285 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 286 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 287 | --> $DIR/lint-attr-everywhere-late.rs:173:29 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 288 | | |
| 289 | LL | discriminant::<i32>(&123); |
| 290 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 291 | note: the lint level is defined here |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 292 | --> $DIR/lint-attr-everywhere-late.rs:172:17 |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 293 | | |
| 294 | LL | #![deny(enum_intrinsics_non_enums)] |
| 295 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 296 | |
| 297 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 298 | --> $DIR/lint-attr-everywhere-late.rs:177:9 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 299 | | |
| 300 | LL | discriminant::<i32>(&123); |
| 301 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 302 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 303 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 304 | --> $DIR/lint-attr-everywhere-late.rs:177:29 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 305 | | |
| 306 | LL | discriminant::<i32>(&123); |
| 307 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 308 | note: the lint level is defined here |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 309 | --> $DIR/lint-attr-everywhere-late.rs:176:16 |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 310 | | |
| 311 | LL | #[deny(enum_intrinsics_non_enums)] |
| 312 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 313 | |
| 314 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 315 | --> $DIR/lint-attr-everywhere-late.rs:182:5 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 316 | | |
| 317 | LL | discriminant::<i32>(&123); |
| 318 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 319 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 320 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 321 | --> $DIR/lint-attr-everywhere-late.rs:182:25 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 322 | | |
| 323 | LL | discriminant::<i32>(&123); |
| 324 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 325 | note: the lint level is defined here |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 326 | --> $DIR/lint-attr-everywhere-late.rs:181:12 |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 327 | | |
| 328 | LL | #[deny(enum_intrinsics_non_enums)] |
| 329 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 330 | |
| 331 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 332 | --> $DIR/lint-attr-everywhere-late.rs:184:41 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 333 | | |
| 334 | LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)]; |
| 335 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 336 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 337 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 338 | --> $DIR/lint-attr-everywhere-late.rs:184:61 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 339 | | |
| 340 | LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)]; |
| 341 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 342 | note: the lint level is defined here |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 343 | --> $DIR/lint-attr-everywhere-late.rs:184:13 |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 344 | | |
| 345 | LL | [#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)]; |
| 346 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 347 | |
| 348 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 349 | --> $DIR/lint-attr-everywhere-late.rs:185:41 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 350 | | |
| 351 | LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),); |
| 352 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 353 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 354 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 355 | --> $DIR/lint-attr-everywhere-late.rs:185:61 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 356 | | |
| 357 | LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),); |
| 358 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 359 | note: the lint level is defined here |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 360 | --> $DIR/lint-attr-everywhere-late.rs:185:13 |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 361 | | |
| 362 | LL | (#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123),); |
| 363 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 364 | |
| 365 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 366 | --> $DIR/lint-attr-everywhere-late.rs:187:45 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 367 | | |
| 368 | LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)); |
| 369 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 370 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 371 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 372 | --> $DIR/lint-attr-everywhere-late.rs:187:65 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 373 | | |
| 374 | LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)); |
| 375 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 376 | note: the lint level is defined here |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 377 | --> $DIR/lint-attr-everywhere-late.rs:187:17 |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 378 | | |
| 379 | LL | call(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)); |
| 380 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 381 | |
| 382 | error: the return value of `mem::discriminant` is unspecified when called with a non-enum type |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 383 | --> $DIR/lint-attr-everywhere-late.rs:189:52 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 384 | | |
| 385 | LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)); |
| 386 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 387 | | |
Michael Goulet | ffd72b1 | 2024-06-21 22:20:45 | [diff] [blame] | 388 | note: the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `i32`, which is not an enum |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 389 | --> $DIR/lint-attr-everywhere-late.rs:189:72 |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 390 | | |
| 391 | LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)); |
| 392 | | ^^^^ |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 393 | note: the lint level is defined here |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 394 | --> $DIR/lint-attr-everywhere-late.rs:189:24 |
Maybe Waffle | 13b67fb | 2022-09-18 15:55:36 | [diff] [blame] | 395 | | |
| 396 | LL | TupleStruct(#[deny(enum_intrinsics_non_enums)] discriminant::<i32>(&123)); |
| 397 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 398 | |
Camille GILLOT | 7c34f1a | 2023-07-15 16:43:45 | [diff] [blame] | 399 | error: missing documentation for a function |
| 400 | --> $DIR/lint-attr-everywhere-late.rs:47:5 |
| 401 | | |
| 402 | LL | pub fn missing_inner() {} |
| 403 | | ^^^^^^^^^^^^^^^^^^^^^^ |
| 404 | |
Camille GILLOT | 6c7054e | 2023-07-15 10:41:33 | [diff] [blame] | 405 | error: `clashing1` redeclared with a different signature |
| 406 | --> $DIR/lint-attr-everywhere-late.rs:123:5 |
| 407 | | |
| 408 | LL | fn clashing1(); |
Michael Goulet | 833af65 | 2024-08-07 17:01:34 | [diff] [blame] | 409 | | --------------- `clashing1` previously declared here |
Camille GILLOT | 6c7054e | 2023-07-15 10:41:33 | [diff] [blame] | 410 | ... |
| 411 | LL | fn clashing1(_: i32); |
Michael Goulet | 833af65 | 2024-08-07 17:01:34 | [diff] [blame] | 412 | | ^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration |
Camille GILLOT | 6c7054e | 2023-07-15 10:41:33 | [diff] [blame] | 413 | | |
| 414 | = note: expected `unsafe extern "C" fn()` |
| 415 | found `unsafe extern "C" fn(i32)` |
| 416 | note: the lint level is defined here |
| 417 | --> $DIR/lint-attr-everywhere-late.rs:122:13 |
| 418 | | |
| 419 | LL | #![deny(clashing_extern_declarations)] |
| 420 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 421 | |
| 422 | error: `clashing2` redeclared with a different signature |
| 423 | --> $DIR/lint-attr-everywhere-late.rs:128:5 |
| 424 | | |
| 425 | LL | fn clashing2(); |
Michael Goulet | 833af65 | 2024-08-07 17:01:34 | [diff] [blame] | 426 | | --------------- `clashing2` previously declared here |
Camille GILLOT | 6c7054e | 2023-07-15 10:41:33 | [diff] [blame] | 427 | ... |
| 428 | LL | fn clashing2(_: i32); |
Michael Goulet | 833af65 | 2024-08-07 17:01:34 | [diff] [blame] | 429 | | ^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration |
Camille GILLOT | 6c7054e | 2023-07-15 10:41:33 | [diff] [blame] | 430 | | |
| 431 | = note: expected `unsafe extern "C" fn()` |
| 432 | found `unsafe extern "C" fn(i32)` |
| 433 | note: the lint level is defined here |
| 434 | --> $DIR/lint-attr-everywhere-late.rs:127:12 |
| 435 | | |
| 436 | LL | #[deny(clashing_extern_declarations)] |
| 437 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 438 | |
Ryo Yoshida | ddafe23 | 2023-05-18 11:33:07 | [diff] [blame] | 439 | error: aborting due to 32 previous errors |
Eric Huss | 6c7cb2b | 2022-05-05 20:44:12 | [diff] [blame] | 440 | |