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