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

ices/83641.sh: fixed with errors #737

Merged
merged 1 commit into from
Apr 29, 2021
Merged

ices/83641.sh: fixed with errors #737

merged 1 commit into from
Apr 29, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83641

#!/bin/bash

rustc --crate-type=lib --crate-name=repro - <<'EOF'
#![feature(pub_macro_rules)]
pub macro_rules! fail {
    ($x:expr) => { $x }
}
EOF

rustc -L. - <<'EOF'
extern crate repro;
fn main() {
    repro::fail!(recv);
}
EOF
=== stdout ===
=== stderr ===
error: can't qualify macro_rules invocation with `pub`
 --> <anon>:2:1
  |
2 | pub macro_rules! fail {
  | ^^^ help: try exporting the macro: `#[macro_export]`

error[E0557]: feature has been removed
 --> <anon>:1:12
  |
1 | #![feature(pub_macro_rules)]
  |            ^^^^^^^^^^^^^^^ feature has been removed
  |
  = note: removed due to being incomplete, in particular it does not work across crates

warning: unused macro definition
 --> <anon>:2:1
  |
2 | / pub macro_rules! fail {
3 | |     ($x:expr) => { $x }
4 | | }
  | |_^
  |
  = note: `#[warn(unused_macros)]` on by default

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0557`.
error[E0463]: can't find crate for `repro`
 --> <anon>:1:1
  |
1 | extern crate repro;
  | ^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
==============

=== stdout ===
=== stderr ===
error: can't qualify macro_rules invocation with `pub`
 --> <anon>:2:1
  |
2 | pub macro_rules! fail {
  | ^^^ help: try exporting the macro: `#[macro_export]`

error[E0557]: feature has been removed
 --> <anon>:1:12
  |
1 | #![feature(pub_macro_rules)]
  |            ^^^^^^^^^^^^^^^ feature has been removed
  |
  = note: removed due to being incomplete, in particular it does not work across crates

warning: unused macro definition
 --> <anon>:2:1
  |
2 | / pub macro_rules! fail {
3 | |     ($x:expr) => { $x }
4 | | }
  | |_^
  |
  = note: `#[warn(unused_macros)]` on by default

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0557`.
error[E0463]: can't find crate for `repro`
 --> <anon>:1:1
  |
1 | extern crate repro;
  | ^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
==============
@JohnTitor JohnTitor merged commit 090602d into master Apr 29, 2021
@JohnTitor JohnTitor deleted the autofix/ices/83641.sh branch April 29, 2021 13:04
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