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

ices/80074.sh: fixed with no errors #943

Merged
merged 1 commit into from
Aug 31, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#80074

#!/bin/bash

rustc --edition=2018 -C embed-bitcode=no -C debuginfo=2 --crate-type=lib - << 'EOF'
macro_rules! foo_ { () => {}; }
use foo_ as foo;
EOF

rustc --edition=2018 -C embed-bitcode=no -C debuginfo=2 --extern test_project=$(ls librust_out.*) - << 'EOF'
#[macro_use]
extern crate test_project;

fn main() {
    foo!();
}
EOF
=== stdout ===
=== stderr ===
warning: unused macro definition
 --> <anon>:1:1
  |
1 | macro_rules! foo_ { () => {}; }
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_macros)]` on by default

warning: unused import: `foo_ as foo`
 --> <anon>:2:5
  |
2 | use foo_ as foo;
  |     ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: unused macro definition
 --> <anon>:1:1
  |
1 | macro_rules! foo_ { () => {}; }
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_macros)]` on by default

warning: unused import: `foo_ as foo`
 --> <anon>:2:5
  |
2 | use foo_ as foo;
  |     ^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: 2 warnings emitted

==============
@Alexendoo Alexendoo merged commit 2dc6f8b into master Aug 31, 2021
@Alexendoo Alexendoo deleted the autofix/ices/80074.sh branch August 31, 2021 11:17
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