Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/72105.sh: fixed with no errors #385

Merged
merged 1 commit into from
May 27, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#72105

#!/bin/bash

cat > 72105.rs <<EOF
extern "C" {
    static _dispatch_queue_attr_concurrent: [u8; 0];
}

fn main() {
let x: &[u8; 0] =
    unsafe { &_dispatch_queue_attr_concurrent };
}
EOF

rustc --emit=mir 72105.rs
=== stdout ===
=== stderr ===
warning: unused variable: `x`
 --> 72105.rs:6:5
  |
6 | let x: &[u8; 0] =
  |     ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: unused variable: `x`
 --> 72105.rs:6:5
  |
6 | let x: &[u8; 0] =
  |     ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 9c55ce0 into master May 27, 2020
@JohnTitor JohnTitor deleted the autofix/ices/72105.sh branch May 27, 2020 12:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants