1error: avoid using named labels in inline assembly 2 --> $DIR/named-asm-labels.rs:24:15 3 | 4LL | asm!("bar: nop"); 5 | ^^^ 6 | 7 = help: only local labels of the form `<number>:` should be used in inline asm 8 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 9 = note: `#[deny(named_asm_labels)]` on by default 10 11error: avoid using named labels in inline assembly 12 --> $DIR/named-asm-labels.rs:27:15 13 | 14LL | asm!("abcd:"); 15 | ^^^^ 16 | 17 = help: only local labels of the form `<number>:` should be used in inline asm 18 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 19 20error: avoid using named labels in inline assembly 21 --> $DIR/named-asm-labels.rs:30:15 22 | 23LL | asm!("foo: bar1: nop"); 24 | ^^^ ^^^^ 25 | 26 = help: only local labels of the form `<number>:` should be used in inline asm 27 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 28 29error: avoid using named labels in inline assembly 30 --> $DIR/named-asm-labels.rs:34:15 31 | 32LL | asm!("foo1: nop", "nop"); 33 | ^^^^ 34 | 35 = help: only local labels of the form `<number>:` should be used in inline asm 36 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 37 38error: avoid using named labels in inline assembly 39 --> $DIR/named-asm-labels.rs:35:15 40 | 41LL | asm!("foo2: foo3: nop", "nop"); 42 | ^^^^ ^^^^ 43 | 44 = help: only local labels of the form `<number>:` should be used in inline asm 45 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 46 47error: avoid using named labels in inline assembly 48 --> $DIR/named-asm-labels.rs:37:22 49 | 50LL | asm!("nop", "foo4: nop"); 51 | ^^^^ 52 | 53 = help: only local labels of the form `<number>:` should be used in inline asm 54 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 55 56error: avoid using named labels in inline assembly 57 --> $DIR/named-asm-labels.rs:38:15 58 | 59LL | asm!("foo5: nop", "foo6: nop"); 60 | ^^^^ 61 | 62 = help: only local labels of the form `<number>:` should be used in inline asm 63 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 64 65error: avoid using named labels in inline assembly 66 --> $DIR/named-asm-labels.rs:38:28 67 | 68LL | asm!("foo5: nop", "foo6: nop"); 69 | ^^^^ 70 | 71 = help: only local labels of the form `<number>:` should be used in inline asm 72 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 73 74error: avoid using named labels in inline assembly 75 --> $DIR/named-asm-labels.rs:43:15 76 | 77LL | asm!("foo7: nop; foo8: nop"); 78 | ^^^^ ^^^^ 79 | 80 = help: only local labels of the form `<number>:` should be used in inline asm 81 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 82 83error: avoid using named labels in inline assembly 84 --> $DIR/named-asm-labels.rs:45:15 85 | 86LL | asm!("foo9: nop; nop"); 87 | ^^^^ 88 | 89 = help: only local labels of the form `<number>:` should be used in inline asm 90 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 91 92error: avoid using named labels in inline assembly 93 --> $DIR/named-asm-labels.rs:46:20 94 | 95LL | asm!("nop; foo10: nop"); 96 | ^^^^^ 97 | 98 = help: only local labels of the form `<number>:` should be used in inline asm 99 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 100 101error: avoid using named labels in inline assembly 102 --> $DIR/named-asm-labels.rs:49:15 103 | 104LL | asm!("bar2: nop\n bar3: nop"); 105 | ^^^^ ^^^^ 106 | 107 = help: only local labels of the form `<number>:` should be used in inline asm 108 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 109 110error: avoid using named labels in inline assembly 111 --> $DIR/named-asm-labels.rs:51:15 112 | 113LL | asm!("bar4: nop\n nop"); 114 | ^^^^ 115 | 116 = help: only local labels of the form `<number>:` should be used in inline asm 117 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 118 119error: avoid using named labels in inline assembly 120 --> $DIR/named-asm-labels.rs:52:21 121 | 122LL | asm!("nop\n bar5: nop"); 123 | ^^^^ 124 | 125 = help: only local labels of the form `<number>:` should be used in inline asm 126 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 127 128error: avoid using named labels in inline assembly 129 --> $DIR/named-asm-labels.rs:53:21 130 | 131LL | asm!("nop\n bar6: bar7: nop"); 132 | ^^^^ ^^^^ 133 | 134 = help: only local labels of the form `<number>:` should be used in inline asm 135 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 136 137error: avoid using named labels in inline assembly 138 --> $DIR/named-asm-labels.rs:59:13 139 | 140LL | blah2: nop 141 | ^^^^^ 142LL | blah3: nop 143 | ^^^^^ 144 | 145 = help: only local labels of the form `<number>:` should be used in inline asm 146 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 147 148error: avoid using named labels in inline assembly 149 --> $DIR/named-asm-labels.rs:68:19 150 | 151LL | nop ; blah4: nop 152 | ^^^^^ 153 | 154 = help: only local labels of the form `<number>:` should be used in inline asm 155 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 156 157error: avoid using named labels in inline assembly 158 --> $DIR/named-asm-labels.rs:82:15 159 | 160LL | asm!("blah1: 2bar: nop"); 161 | ^^^^^ 162 | 163 = help: only local labels of the form `<number>:` should be used in inline asm 164 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 165 166error: avoid using named labels in inline assembly 167 --> $DIR/named-asm-labels.rs:85:15 168 | 169LL | asm!("def: def: nop"); 170 | ^^^ 171 | 172 = help: only local labels of the form `<number>:` should be used in inline asm 173 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 174 175error: avoid using named labels in inline assembly 176 --> $DIR/named-asm-labels.rs:86:15 177 | 178LL | asm!("def: nop\ndef: nop"); 179 | ^^^ 180 | 181 = help: only local labels of the form `<number>:` should be used in inline asm 182 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 183 184error: avoid using named labels in inline assembly 185 --> $DIR/named-asm-labels.rs:87:15 186 | 187LL | asm!("def: nop; def: nop"); 188 | ^^^ 189 | 190 = help: only local labels of the form `<number>:` should be used in inline asm 191 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 192 193error: avoid using named labels in inline assembly 194 --> $DIR/named-asm-labels.rs:95:15 195 | 196LL | asm!("fooo\u{003A} nop"); 197 | ^^^^^^^^^^^^^^^^ 198 | 199 = help: only local labels of the form `<number>:` should be used in inline asm 200 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 201 202error: avoid using named labels in inline assembly 203 --> $DIR/named-asm-labels.rs:96:15 204 | 205LL | asm!("foooo\x3A nop"); 206 | ^^^^^^^^^^^^^ 207 | 208 = help: only local labels of the form `<number>:` should be used in inline asm 209 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 210 211error: avoid using named labels in inline assembly 212 --> $DIR/named-asm-labels.rs:99:15 213 | 214LL | asm!("fooooo:\u{000A} nop"); 215 | ^^^^^^ 216 | 217 = help: only local labels of the form `<number>:` should be used in inline asm 218 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 219 220error: avoid using named labels in inline assembly 221 --> $DIR/named-asm-labels.rs:100:15 222 | 223LL | asm!("foooooo:\x0A nop"); 224 | ^^^^^^^ 225 | 226 = help: only local labels of the form `<number>:` should be used in inline asm 227 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 228 229error: avoid using named labels in inline assembly 230 --> $DIR/named-asm-labels.rs:104:14 231 | 232LL | asm!("\x41\x42\x43\x3A\x20\x6E\x6F\x70"); 233 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234 | 235 = help: only local labels of the form `<number>:` should be used in inline asm 236 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 237 238error: avoid using named labels in inline assembly 239 --> $DIR/named-asm-labels.rs:112:13 240 | 241LL | ab: nop // ab: does foo 242 | ^^ 243 | 244 = help: only local labels of the form `<number>:` should be used in inline asm 245 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 246 247error: avoid using named labels in inline assembly 248 --> $DIR/named-asm-labels.rs:124:14 249 | 250LL | asm!(include_str!("named-asm-labels.s")); 251 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252 | 253 = help: only local labels of the form `<number>:` should be used in inline asm 254 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 255 256warning: avoid using named labels in inline assembly 257 --> $DIR/named-asm-labels.rs:134:19 258 | 259LL | asm!("warned: nop"); 260 | ^^^^^^ 261 | 262 = help: only local labels of the form `<number>:` should be used in inline asm 263 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 264note: the lint level is defined here 265 --> $DIR/named-asm-labels.rs:132:16 266 | 267LL | #[warn(named_asm_labels)] 268 | ^^^^^^^^^^^^^^^^ 269 270error: avoid using named labels in inline assembly 271 --> $DIR/named-asm-labels.rs:143:20 272 | 273LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noreturn)) } 274 | ^^^^^ 275 | 276 = help: only local labels of the form `<number>:` should be used in inline asm 277 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 278 279error: avoid using named labels in inline assembly 280 --> $DIR/named-asm-labels.rs:149:20 281 | 282LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noreturn)) } 283 | ^^^^^ 284 | 285 = help: only local labels of the form `<number>:` should be used in inline asm 286 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 287 288error: avoid using named labels in inline assembly 289 --> $DIR/named-asm-labels.rs:157:20 290 | 291LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) } 292 | ^^^^^ 293 | 294 = help: only local labels of the form `<number>:` should be used in inline asm 295 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 296 297error: avoid using named labels in inline assembly 298 --> $DIR/named-asm-labels.rs:167:24 299 | 300LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) } 301 | ^^^^^ 302 | 303 = help: only local labels of the form `<number>:` should be used in inline asm 304 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 305 306error: avoid using named labels in inline assembly 307 --> $DIR/named-asm-labels.rs:176:15 308 | 309LL | asm!("closure1: nop"); 310 | ^^^^^^^^ 311 | 312 = help: only local labels of the form `<number>:` should be used in inline asm 313 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 314 315error: avoid using named labels in inline assembly 316 --> $DIR/named-asm-labels.rs:180:15 317 | 318LL | asm!("closure2: nop"); 319 | ^^^^^^^^ 320 | 321 = help: only local labels of the form `<number>:` should be used in inline asm 322 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 323 324error: avoid using named labels in inline assembly 325 --> $DIR/named-asm-labels.rs:190:19 326 | 327LL | asm!("closure3: nop"); 328 | ^^^^^^^^ 329 | 330 = help: only local labels of the form `<number>:` should be used in inline asm 331 = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information 332 333error: aborting due to 35 previous errors; 1 warning emitted 334 335