fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]` 2 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:400:17 3 | 4LL | mod inner { #![macro_escape] } 5 | ^^^^^^^^^^^^^^^^ 6 | 7 = help: try an outer attribute: `#[macro_use]` 8 9warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]` 10 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:397:1 11 | 12LL | #[macro_escape] 13 | ^^^^^^^^^^^^^^^ 14 15warning: unknown lint: `x5400` 16 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:46:9 17 | 18LL | #![warn(x5400)] 19 | ^^^^^ 20 | 21note: the lint level is defined here 22 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:40:28 23 | 24LL | #![warn(unused_attributes, unknown_lints)] 25 | ^^^^^^^^^^^^^ 26 27warning: unknown lint: `x5300` 28 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:47:10 29 | 30LL | #![allow(x5300)] 31 | ^^^^^ 32 33warning: unknown lint: `x5200` 34 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:48:11 35 | 36LL | #![forbid(x5200)] 37 | ^^^^^ 38 39warning: unknown lint: `x5100` 40 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:49:9 41 | 42LL | #![deny(x5100)] 43 | ^^^^^ 44 45warning: unknown lint: `x5400` 46 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:105:8 47 | 48LL | #[warn(x5400)] 49 | ^^^^^ 50 51warning: unknown lint: `x5400` 52 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:108:25 53 | 54LL | mod inner { #![warn(x5400)] } 55 | ^^^^^ 56 57warning: unknown lint: `x5400` 58 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:111:12 59 | 60LL | #[warn(x5400)] fn f() { } 61 | ^^^^^ 62 63warning: unknown lint: `x5400` 64 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:114:12 65 | 66LL | #[warn(x5400)] struct S; 67 | ^^^^^ 68 69warning: unknown lint: `x5400` 70 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:117:12 71 | 72LL | #[warn(x5400)] type T = S; 73 | ^^^^^ 74 75warning: unknown lint: `x5400` 76 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:120:12 77 | 78LL | #[warn(x5400)] impl S { } 79 | ^^^^^ 80 81warning: unknown lint: `x5300` 82 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:124:9 83 | 84LL | #[allow(x5300)] 85 | ^^^^^ 86 87warning: unknown lint: `x5300` 88 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:127:26 89 | 90LL | mod inner { #![allow(x5300)] } 91 | ^^^^^ 92 93warning: unknown lint: `x5300` 94 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:130:13 95 | 96LL | #[allow(x5300)] fn f() { } 97 | ^^^^^ 98 99warning: unknown lint: `x5300` 100 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:133:13 101 | 102LL | #[allow(x5300)] struct S; 103 | ^^^^^ 104 105warning: unknown lint: `x5300` 106 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:136:13 107 | 108LL | #[allow(x5300)] type T = S; 109 | ^^^^^ 110 111warning: unknown lint: `x5300` 112 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:139:13 113 | 114LL | #[allow(x5300)] impl S { } 115 | ^^^^^ 116 117warning: unknown lint: `x5200` 118 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:143:10 119 | 120LL | #[forbid(x5200)] 121 | ^^^^^ 122 123warning: unknown lint: `x5200` 124 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:146:27 125 | 126LL | mod inner { #![forbid(x5200)] } 127 | ^^^^^ 128 129warning: unknown lint: `x5200` 130 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:149:14 131 | 132LL | #[forbid(x5200)] fn f() { } 133 | ^^^^^ 134 135warning: unknown lint: `x5200` 136 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:152:14 137 | 138LL | #[forbid(x5200)] struct S; 139 | ^^^^^ 140 141warning: unknown lint: `x5200` 142 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:155:14 143 | 144LL | #[forbid(x5200)] type T = S; 145 | ^^^^^ 146 147warning: unknown lint: `x5200` 148 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:158:14 149 | 150LL | #[forbid(x5200)] impl S { } 151 | ^^^^^ 152 153warning: unknown lint: `x5100` 154 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:162:8 155 | 156LL | #[deny(x5100)] 157 | ^^^^^ 158 159warning: unknown lint: `x5100` 160 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:165:25 161 | 162LL | mod inner { #![deny(x5100)] } 163 | ^^^^^ 164 165warning: unknown lint: `x5100` 166 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:168:12 167 | 168LL | #[deny(x5100)] fn f() { } 169 | ^^^^^ 170 171warning: unknown lint: `x5100` 172 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:171:12 173 | 174LL | #[deny(x5100)] struct S; 175 | ^^^^^ 176 177warning: unknown lint: `x5100` 178 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:174:12 179 | 180LL | #[deny(x5100)] type T = S; 181 | ^^^^^ 182 183warning: unknown lint: `x5100` 184 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:177:12 185 | 186LL | #[deny(x5100)] impl S { } 187 | ^^^^^ 188 189warning: use of deprecated attribute `crate_id`: no longer used. 190 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:84:1 191 | 192LL | #![crate_id = "10"] 193 | ^^^^^^^^^^^^^^^^^^^ help: remove this attribute 194 | 195 = note: `#[warn(deprecated)]` on by default 196 197warning: use of deprecated attribute `no_start`: no longer used. 198 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:94:1 199 | 200LL | #![no_start] 201 | ^^^^^^^^^^^^ help: remove this attribute 202 203warning: `#[macro_export]` only has an effect on macro definitions 204 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:198:1 205 | 206LL | #[macro_export] 207 | ^^^^^^^^^^^^^^^ 208 | 209note: the lint level is defined here 210 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:40:9 211 | 212LL | #![warn(unused_attributes, unknown_lints)] 213 | ^^^^^^^^^^^^^^^^^ 214 215warning: `#[automatically_derived]` only has an effect on implementation blocks 216 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:266:1 217 | 218LL | #[automatically_derived] 219 | ^^^^^^^^^^^^^^^^^^^^^^^^ 220 221warning: attribute should be applied to a free function, impl method or static 222 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:284:1 223 | 224LL | #[no_mangle] 225 | ^^^^^^^^^^^^ 226... 227LL | / mod no_mangle { 228LL | | 229LL | | mod inner { #![no_mangle] } 230LL | | 231... | 232LL | | } 233LL | | } 234 | |_- not a free function, impl method or static 235 | 236 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 237 238warning: `#[should_panic]` only has an effect on functions 239 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:324:1 240 | 241LL | #[should_panic] 242 | ^^^^^^^^^^^^^^^ 243 244warning: `#[ignore]` only has an effect on functions 245 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:342:1 246 | 247LL | #[ignore] 248 | ^^^^^^^^^ 249 250warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 251 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:377:1 252 | 253LL | #[reexport_test_harness_main = "2900"] 254 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 255 256warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 257 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:417:1 258 | 259LL | #[no_std] 260 | ^^^^^^^^^ 261 262warning: attribute should be applied to a function definition 263 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:453:1 264 | 265LL | #[cold] 266 | ^^^^^^^ 267... 268LL | / mod cold { 269LL | | 270LL | | 271LL | | mod inner { #![cold] } 272... | 273LL | | 274LL | | } 275 | |_- not a function definition 276 | 277 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 278 279warning: attribute should be applied to a foreign function or static 280 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:482:1 281 | 282LL | #[link_name = "1900"] 283 | ^^^^^^^^^^^^^^^^^^^^^ 284... 285LL | / mod link_name { 286LL | | 287LL | | 288LL | | #[link_name = "1900"] 289... | 290LL | | 291LL | | } 292 | |_- not a foreign function or static 293 | 294 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 295 296warning: attribute should be applied to a function or static 297 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:521:1 298 | 299LL | #[link_section = "1800"] 300 | ^^^^^^^^^^^^^^^^^^^^^^^^ 301... 302LL | / mod link_section { 303LL | | 304LL | | 305LL | | mod inner { #![link_section="1800"] } 306... | 307LL | | 308LL | | } 309 | |_- not a function or static 310 | 311 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 312 313warning: attribute should be applied to an `extern` block with non-Rust ABI 314 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:553:1 315 | 316LL | #[link()] 317 | ^^^^^^^^^ 318... 319LL | / mod link { 320LL | | 321LL | | 322LL | | mod inner { #![link()] } 323... | 324LL | | 325LL | | } 326 | |_- not an `extern` block 327 | 328 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 329 330warning: `#[must_use]` has no effect when applied to a module 331 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:604:1 332 | 333LL | #[must_use] 334 | ^^^^^^^^^^^ 335 336warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 337 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:617:1 338 | 339LL | #[windows_subsystem = "windows"] 340 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 341 342warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 343 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:638:1 344 | 345LL | #[crate_name = "0900"] 346 | ^^^^^^^^^^^^^^^^^^^^^^ 347 348warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 349 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:657:1 350 | 351LL | #[crate_type = "0800"] 352 | ^^^^^^^^^^^^^^^^^^^^^^ 353 354warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 355 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:676:1 356 | 357LL | #[feature(x0600)] 358 | ^^^^^^^^^^^^^^^^^ 359 360warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 361 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:696:1 362 | 363LL | #[no_main] 364 | ^^^^^^^^^^ 365 366warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 367 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:715:1 368 | 369LL | #[no_builtins] 370 | ^^^^^^^^^^^^^^ 371 372warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 373 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:734:1 374 | 375LL | #[recursion_limit="0200"] 376 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 377 378warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 379 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:753:1 380 | 381LL | #[type_length_limit="0100"] 382 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 383 384warning: `#[should_panic]` only has an effect on functions 385 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:53:1 386 | 387LL | #![should_panic] 388 | ^^^^^^^^^^^^^^^^ 389 390warning: `#[ignore]` only has an effect on functions 391 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:54:1 392 | 393LL | #![ignore] 394 | ^^^^^^^^^^ 395 396warning: `#[proc_macro_derive]` only has an effect on functions 397 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:60:1 398 | 399LL | #![proc_macro_derive()] 400 | ^^^^^^^^^^^^^^^^^^^^^^^ 401 402warning: attribute should be applied to a function definition 403 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:62:1 404 | 405LL | #![cold] 406 | ^^^^^^^^ cannot be applied to crates 407 | 408 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 409 410warning: attribute should be applied to an `extern` block with non-Rust ABI 411 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:64:1 412 | 413LL | #![link()] 414 | ^^^^^^^^^^ not an `extern` block 415 | 416 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 417 418warning: attribute should be applied to a foreign function or static 419 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:66:1 420 | 421LL | #![link_name = "1900"] 422 | ^^^^^^^^^^^^^^^^^^^^^^ not a foreign function or static 423 | 424 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 425 426warning: attribute should be applied to a function or static 427 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:69:1 428 | 429LL | #![link_section = "1800"] 430 | ^^^^^^^^^^^^^^^^^^^^^^^^^ not a function or static 431 | 432 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 433 434warning: `#[must_use]` has no effect when applied to a module 435 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:72:1 436 | 437LL | #![must_use] 438 | ^^^^^^^^^^^^ 439 440warning: `#[macro_use]` only has an effect on `extern crate` and modules 441 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:185:5 442 | 443LL | #[macro_use] fn f() { } 444 | ^^^^^^^^^^^^ 445 446warning: `#[macro_use]` only has an effect on `extern crate` and modules 447 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:188:5 448 | 449LL | #[macro_use] struct S; 450 | ^^^^^^^^^^^^ 451 452warning: `#[macro_use]` only has an effect on `extern crate` and modules 453 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:191:5 454 | 455LL | #[macro_use] type T = S; 456 | ^^^^^^^^^^^^ 457 458warning: `#[macro_use]` only has an effect on `extern crate` and modules 459 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:194:5 460 | 461LL | #[macro_use] impl S { } 462 | ^^^^^^^^^^^^ 463 464warning: `#[macro_export]` only has an effect on macro definitions 465 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:201:17 466 | 467LL | mod inner { #![macro_export] } 468 | ^^^^^^^^^^^^^^^^ 469 470warning: `#[macro_export]` only has an effect on macro definitions 471 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:204:5 472 | 473LL | #[macro_export] fn f() { } 474 | ^^^^^^^^^^^^^^^ 475 476warning: `#[macro_export]` only has an effect on macro definitions 477 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:207:5 478 | 479LL | #[macro_export] struct S; 480 | ^^^^^^^^^^^^^^^ 481 482warning: `#[macro_export]` only has an effect on macro definitions 483 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:210:5 484 | 485LL | #[macro_export] type T = S; 486 | ^^^^^^^^^^^^^^^ 487 488warning: `#[macro_export]` only has an effect on macro definitions 489 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:213:5 490 | 491LL | #[macro_export] impl S { } 492 | ^^^^^^^^^^^^^^^ 493 494warning: `#[path]` only has an effect on modules 495 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:253:5 496 | 497LL | #[path = "3800"] fn f() { } 498 | ^^^^^^^^^^^^^^^^ 499 500warning: `#[path]` only has an effect on modules 501 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:256:5 502 | 503LL | #[path = "3800"] struct S; 504 | ^^^^^^^^^^^^^^^^ 505 506warning: `#[path]` only has an effect on modules 507 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:259:5 508 | 509LL | #[path = "3800"] type T = S; 510 | ^^^^^^^^^^^^^^^^ 511 512warning: `#[path]` only has an effect on modules 513 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:262:5 514 | 515LL | #[path = "3800"] impl S { } 516 | ^^^^^^^^^^^^^^^^ 517 518warning: `#[automatically_derived]` only has an effect on implementation blocks 519 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:269:17 520 | 521LL | mod inner { #![automatically_derived] } 522 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 523 524warning: `#[automatically_derived]` only has an effect on implementation blocks 525 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:272:5 526 | 527LL | #[automatically_derived] fn f() { } 528 | ^^^^^^^^^^^^^^^^^^^^^^^^ 529 530warning: `#[automatically_derived]` only has an effect on implementation blocks 531 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:275:5 532 | 533LL | #[automatically_derived] struct S; 534 | ^^^^^^^^^^^^^^^^^^^^^^^^ 535 536warning: `#[automatically_derived]` only has an effect on implementation blocks 537 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:278:5 538 | 539LL | #[automatically_derived] type T = S; 540 | ^^^^^^^^^^^^^^^^^^^^^^^^ 541 542warning: attribute should be applied to a free function, impl method or static 543 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:289:17 544 | 545LL | mod inner { #![no_mangle] } 546 | ------------^^^^^^^^^^^^^-- not a free function, impl method or static 547 | 548 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 549 550warning: attribute should be applied to a free function, impl method or static 551 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:296:5 552 | 553LL | #[no_mangle] struct S; 554 | ^^^^^^^^^^^^ --------- not a free function, impl method or static 555 | 556 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 557 558warning: attribute should be applied to a free function, impl method or static 559 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:301:5 560 | 561LL | #[no_mangle] type T = S; 562 | ^^^^^^^^^^^^ ----------- not a free function, impl method or static 563 | 564 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 565 566warning: attribute should be applied to a free function, impl method or static 567 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:306:5 568 | 569LL | #[no_mangle] impl S { } 570 | ^^^^^^^^^^^^ ---------- not a free function, impl method or static 571 | 572 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 573 574warning: attribute should be applied to a free function, impl method or static 575 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:312:9 576 | 577LL | #[no_mangle] fn foo(); 578 | ^^^^^^^^^^^^ --------- not a free function, impl method or static 579 | 580 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 581 582warning: attribute should be applied to a free function, impl method or static 583 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:317:9 584 | 585LL | #[no_mangle] fn bar() {} 586 | ^^^^^^^^^^^^ ----------- not a free function, impl method or static 587 | 588 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 589 590warning: `#[should_panic]` only has an effect on functions 591 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:327:17 592 | 593LL | mod inner { #![should_panic] } 594 | ^^^^^^^^^^^^^^^^ 595 596warning: `#[should_panic]` only has an effect on functions 597 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:332:5 598 | 599LL | #[should_panic] struct S; 600 | ^^^^^^^^^^^^^^^ 601 602warning: `#[should_panic]` only has an effect on functions 603 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:335:5 604 | 605LL | #[should_panic] type T = S; 606 | ^^^^^^^^^^^^^^^ 607 608warning: `#[should_panic]` only has an effect on functions 609 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:338:5 610 | 611LL | #[should_panic] impl S { } 612 | ^^^^^^^^^^^^^^^ 613 614warning: `#[ignore]` only has an effect on functions 615 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:345:17 616 | 617LL | mod inner { #![ignore] } 618 | ^^^^^^^^^^ 619 620warning: `#[ignore]` only has an effect on functions 621 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:350:5 622 | 623LL | #[ignore] struct S; 624 | ^^^^^^^^^ 625 626warning: `#[ignore]` only has an effect on functions 627 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:353:5 628 | 629LL | #[ignore] type T = S; 630 | ^^^^^^^^^ 631 632warning: `#[ignore]` only has an effect on functions 633 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:356:5 634 | 635LL | #[ignore] impl S { } 636 | ^^^^^^^^^ 637 638warning: `#[no_implicit_prelude]` only has an effect on modules 639 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:364:5 640 | 641LL | #[no_implicit_prelude] fn f() { } 642 | ^^^^^^^^^^^^^^^^^^^^^^ 643 644warning: `#[no_implicit_prelude]` only has an effect on modules 645 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:367:5 646 | 647LL | #[no_implicit_prelude] struct S; 648 | ^^^^^^^^^^^^^^^^^^^^^^ 649 650warning: `#[no_implicit_prelude]` only has an effect on modules 651 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:370:5 652 | 653LL | #[no_implicit_prelude] type T = S; 654 | ^^^^^^^^^^^^^^^^^^^^^^ 655 656warning: `#[no_implicit_prelude]` only has an effect on modules 657 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:373:5 658 | 659LL | #[no_implicit_prelude] impl S { } 660 | ^^^^^^^^^^^^^^^^^^^^^^ 661 662warning: crate-level attribute should be in the root module 663 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:380:17 664 | 665LL | mod inner { #![reexport_test_harness_main="2900"] } 666 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 667 668warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 669 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:383:5 670 | 671LL | #[reexport_test_harness_main = "2900"] fn f() { } 672 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 673 674warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 675 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:386:5 676 | 677LL | #[reexport_test_harness_main = "2900"] struct S; 678 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 679 680warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 681 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:389:5 682 | 683LL | #[reexport_test_harness_main = "2900"] type T = S; 684 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 685 686warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 687 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:392:5 688 | 689LL | #[reexport_test_harness_main = "2900"] impl S { } 690 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 691 692warning: `#[macro_escape]` only has an effect on `extern crate` and modules 693 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:404:5 694 | 695LL | #[macro_escape] fn f() { } 696 | ^^^^^^^^^^^^^^^ 697 698warning: `#[macro_escape]` only has an effect on `extern crate` and modules 699 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:407:5 700 | 701LL | #[macro_escape] struct S; 702 | ^^^^^^^^^^^^^^^ 703 704warning: `#[macro_escape]` only has an effect on `extern crate` and modules 705 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:410:5 706 | 707LL | #[macro_escape] type T = S; 708 | ^^^^^^^^^^^^^^^ 709 710warning: `#[macro_escape]` only has an effect on `extern crate` and modules 711 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:413:5 712 | 713LL | #[macro_escape] impl S { } 714 | ^^^^^^^^^^^^^^^ 715 716warning: crate-level attribute should be in the root module 717 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:420:17 718 | 719LL | mod inner { #![no_std] } 720 | ^^^^^^^^^^ 721 722warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 723 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:423:5 724 | 725LL | #[no_std] fn f() { } 726 | ^^^^^^^^^ 727 728warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 729 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:426:5 730 | 731LL | #[no_std] struct S; 732 | ^^^^^^^^^ 733 734warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 735 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:429:5 736 | 737LL | #[no_std] type T = S; 738 | ^^^^^^^^^ 739 740warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 741 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:432:5 742 | 743LL | #[no_std] impl S { } 744 | ^^^^^^^^^ 745 746warning: attribute should be applied to a function definition 747 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:459:17 748 | 749LL | mod inner { #![cold] } 750 | ------------^^^^^^^^-- not a function definition 751 | 752 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 753 754warning: attribute should be applied to a function definition 755 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:466:5 756 | 757LL | #[cold] struct S; 758 | ^^^^^^^ --------- not a function definition 759 | 760 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 761 762warning: attribute should be applied to a function definition 763 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:471:5 764 | 765LL | #[cold] type T = S; 766 | ^^^^^^^ ----------- not a function definition 767 | 768 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 769 770warning: attribute should be applied to a function definition 771 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:476:5 772 | 773LL | #[cold] impl S { } 774 | ^^^^^^^ ---------- not a function definition 775 | 776 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 777 778warning: attribute should be applied to a foreign function or static 779 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:488:5 780 | 781LL | #[link_name = "1900"] 782 | ^^^^^^^^^^^^^^^^^^^^^ 783... 784LL | extern "C" { } 785 | -------------- not a foreign function or static 786 | 787 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 788help: try `#[link(name = "1900")]` instead 789 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:488:5 790 | 791LL | #[link_name = "1900"] 792 | ^^^^^^^^^^^^^^^^^^^^^ 793 794warning: attribute should be applied to a foreign function or static 795 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:495:17 796 | 797LL | mod inner { #![link_name="1900"] } 798 | ------------^^^^^^^^^^^^^^^^^^^^-- not a foreign function or static 799 | 800 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 801 802warning: attribute should be applied to a foreign function or static 803 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:500:5 804 | 805LL | #[link_name = "1900"] fn f() { } 806 | ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static 807 | 808 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 809 810warning: attribute should be applied to a foreign function or static 811 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:505:5 812 | 813LL | #[link_name = "1900"] struct S; 814 | ^^^^^^^^^^^^^^^^^^^^^ --------- not a foreign function or static 815 | 816 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 817 818warning: attribute should be applied to a foreign function or static 819 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:510:5 820 | 821LL | #[link_name = "1900"] type T = S; 822 | ^^^^^^^^^^^^^^^^^^^^^ ----------- not a foreign function or static 823 | 824 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 825 826warning: attribute should be applied to a foreign function or static 827 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:515:5 828 | 829LL | #[link_name = "1900"] impl S { } 830 | ^^^^^^^^^^^^^^^^^^^^^ ---------- not a foreign function or static 831 | 832 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 833 834warning: attribute should be applied to a function or static 835 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:527:17 836 | 837LL | mod inner { #![link_section="1800"] } 838 | ------------^^^^^^^^^^^^^^^^^^^^^^^-- not a function or static 839 | 840 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 841 842warning: attribute should be applied to a function or static 843 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:534:5 844 | 845LL | #[link_section = "1800"] struct S; 846 | ^^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static 847 | 848 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 849 850warning: attribute should be applied to a function or static 851 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:539:5 852 | 853LL | #[link_section = "1800"] type T = S; 854 | ^^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static 855 | 856 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 857 858warning: attribute should be applied to a function or static 859 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:544:5 860 | 861LL | #[link_section = "1800"] impl S { } 862 | ^^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static 863 | 864 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 865 866warning: attribute should be applied to an `extern` block with non-Rust ABI 867 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:559:17 868 | 869LL | mod inner { #![link()] } 870 | ------------^^^^^^^^^^-- not an `extern` block 871 | 872 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 873 874warning: attribute should be applied to an `extern` block with non-Rust ABI 875 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:564:5 876 | 877LL | #[link()] fn f() { } 878 | ^^^^^^^^^ ---------- not an `extern` block 879 | 880 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 881 882warning: attribute should be applied to an `extern` block with non-Rust ABI 883 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:569:5 884 | 885LL | #[link()] struct S; 886 | ^^^^^^^^^ --------- not an `extern` block 887 | 888 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 889 890warning: attribute should be applied to an `extern` block with non-Rust ABI 891 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:574:5 892 | 893LL | #[link()] type T = S; 894 | ^^^^^^^^^ ----------- not an `extern` block 895 | 896 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 897 898warning: attribute should be applied to an `extern` block with non-Rust ABI 899 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:579:5 900 | 901LL | #[link()] impl S { } 902 | ^^^^^^^^^ ---------- not an `extern` block 903 | 904 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 905 906warning: attribute should be applied to an `extern` block with non-Rust ABI 907 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:584:5 908 | 909LL | #[link()] extern "Rust" {} 910 | ^^^^^^^^^ 911 | 912 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 913 914warning: `#[must_use]` has no effect when applied to a module 915 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:606:17 916 | 917LL | mod inner { #![must_use] } 918 | ^^^^^^^^^^^^ 919 920warning: `#[must_use]` has no effect when applied to a type alias 921 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:612:5 922 | 923LL | #[must_use] type T = S; 924 | ^^^^^^^^^^^ 925 926warning: `#[must_use]` has no effect when applied to an implementation block 927 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:614:5 928 | 929LL | #[must_use] impl S { } 930 | ^^^^^^^^^^^ 931 932warning: crate-level attribute should be in the root module 933 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:620:17 934 | 935LL | mod inner { #![windows_subsystem="windows"] } 936 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 937 938warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 939 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:623:5 940 | 941LL | #[windows_subsystem = "windows"] fn f() { } 942 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 943 944warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 945 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:626:5 946 | 947LL | #[windows_subsystem = "windows"] struct S; 948 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 949 950warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 951 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:629:5 952 | 953LL | #[windows_subsystem = "windows"] type T = S; 954 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 955 956warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 957 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:632:5 958 | 959LL | #[windows_subsystem = "windows"] impl S { } 960 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 961 962warning: crate-level attribute should be in the root module 963 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:641:17 964 | 965LL | mod inner { #![crate_name="0900"] } 966 | ^^^^^^^^^^^^^^^^^^^^^ 967 968warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 969 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:644:5 970 | 971LL | #[crate_name = "0900"] fn f() { } 972 | ^^^^^^^^^^^^^^^^^^^^^^ 973 974warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 975 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:647:5 976 | 977LL | #[crate_name = "0900"] struct S; 978 | ^^^^^^^^^^^^^^^^^^^^^^ 979 980warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 981 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:650:5 982 | 983LL | #[crate_name = "0900"] type T = S; 984 | ^^^^^^^^^^^^^^^^^^^^^^ 985 986warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 987 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:653:5 988 | 989LL | #[crate_name = "0900"] impl S { } 990 | ^^^^^^^^^^^^^^^^^^^^^^ 991 992warning: crate-level attribute should be in the root module 993 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:660:17 994 | 995LL | mod inner { #![crate_type="0800"] } 996 | ^^^^^^^^^^^^^^^^^^^^^ 997 998warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 999 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:663:5 1000 | 1001LL | #[crate_type = "0800"] fn f() { } 1002 | ^^^^^^^^^^^^^^^^^^^^^^ 1003 1004warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1005 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:666:5 1006 | 1007LL | #[crate_type = "0800"] struct S; 1008 | ^^^^^^^^^^^^^^^^^^^^^^ 1009 1010warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1011 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:669:5 1012 | 1013LL | #[crate_type = "0800"] type T = S; 1014 | ^^^^^^^^^^^^^^^^^^^^^^ 1015 1016warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1017 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:672:5 1018 | 1019LL | #[crate_type = "0800"] impl S { } 1020 | ^^^^^^^^^^^^^^^^^^^^^^ 1021 1022warning: crate-level attribute should be in the root module 1023 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:679:17 1024 | 1025LL | mod inner { #![feature(x0600)] } 1026 | ^^^^^^^^^^^^^^^^^^ 1027 1028warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1029 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:682:5 1030 | 1031LL | #[feature(x0600)] fn f() { } 1032 | ^^^^^^^^^^^^^^^^^ 1033 1034warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1035 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:685:5 1036 | 1037LL | #[feature(x0600)] struct S; 1038 | ^^^^^^^^^^^^^^^^^ 1039 1040warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1041 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:688:5 1042 | 1043LL | #[feature(x0600)] type T = S; 1044 | ^^^^^^^^^^^^^^^^^ 1045 1046warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1047 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:691:5 1048 | 1049LL | #[feature(x0600)] impl S { } 1050 | ^^^^^^^^^^^^^^^^^ 1051 1052warning: crate-level attribute should be in the root module 1053 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:699:17 1054 | 1055LL | mod inner { #![no_main] } 1056 | ^^^^^^^^^^^ 1057 1058warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1059 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:702:5 1060 | 1061LL | #[no_main] fn f() { } 1062 | ^^^^^^^^^^ 1063 1064warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1065 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:705:5 1066 | 1067LL | #[no_main] struct S; 1068 | ^^^^^^^^^^ 1069 1070warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1071 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:708:5 1072 | 1073LL | #[no_main] type T = S; 1074 | ^^^^^^^^^^ 1075 1076warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1077 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:711:5 1078 | 1079LL | #[no_main] impl S { } 1080 | ^^^^^^^^^^ 1081 1082warning: crate-level attribute should be in the root module 1083 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:718:17 1084 | 1085LL | mod inner { #![no_builtins] } 1086 | ^^^^^^^^^^^^^^^ 1087 1088warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1089 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:721:5 1090 | 1091LL | #[no_builtins] fn f() { } 1092 | ^^^^^^^^^^^^^^ 1093 1094warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1095 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:724:5 1096 | 1097LL | #[no_builtins] struct S; 1098 | ^^^^^^^^^^^^^^ 1099 1100warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1101 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:727:5 1102 | 1103LL | #[no_builtins] type T = S; 1104 | ^^^^^^^^^^^^^^ 1105 1106warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1107 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:730:5 1108 | 1109LL | #[no_builtins] impl S { } 1110 | ^^^^^^^^^^^^^^ 1111 1112warning: crate-level attribute should be in the root module 1113 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:737:17 1114 | 1115LL | mod inner { #![recursion_limit="0200"] } 1116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1117 1118warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1119 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:740:5 1120 | 1121LL | #[recursion_limit="0200"] fn f() { } 1122 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 1123 1124warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1125 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:743:5 1126 | 1127LL | #[recursion_limit="0200"] struct S; 1128 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 1129 1130warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1131 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:746:5 1132 | 1133LL | #[recursion_limit="0200"] type T = S; 1134 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 1135 1136warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1137 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:749:5 1138 | 1139LL | #[recursion_limit="0200"] impl S { } 1140 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 1141 1142warning: crate-level attribute should be in the root module 1143 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:756:17 1144 | 1145LL | mod inner { #![type_length_limit="0100"] } 1146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1147 1148warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1149 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:759:5 1150 | 1151LL | #[type_length_limit="0100"] fn f() { } 1152 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1153 1154warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1155 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:762:5 1156 | 1157LL | #[type_length_limit="0100"] struct S; 1158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1159 1160warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1161 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:765:5 1162 | 1163LL | #[type_length_limit="0100"] type T = S; 1164 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1165 1166warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` 1167 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:768:5 1168 | 1169LL | #[type_length_limit="0100"] impl S { } 1170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1171 1172warning: the feature `rust1` has been stable since 1.0.0 and no longer requires an attribute to enable 1173 --> $DIR/issue-43106-gating-of-builtin-attrs.rs:90:12 1174 | 1175LL | #![feature(rust1)] 1176 | ^^^^^ 1177 | 1178 = note: `#[warn(stable_features)]` on by default 1179 1180warning: 173 warnings emitted 1181