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

ices/82865.rs: fixed with errors #704

Merged
merged 1 commit into from
Mar 29, 2021
Merged

ices/82865.rs: fixed with errors #704

merged 1 commit into from
Mar 29, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#82865

use x::y::z;
fn register_builtin_macros() {
    macro register_derive ($f:ident) {
        Box::z($f)
    }
    register_derive! { clone }
}
=== stdout ===
=== stderr ===
error[E0433]: failed to resolve: use of undeclared crate or module `x`
 --> /home/runner/work/glacier/glacier/ices/82865.rs:1:5
  |
1 | use x::y::z;
  |     ^ use of undeclared crate or module `x`

error[E0425]: cannot find value `clone` in this scope
 --> /home/runner/work/glacier/glacier/ices/82865.rs:6:24
  |
6 |     register_derive! { clone }
  |                        ^^^^^ not found in this scope

error[E0658]: `macro` is experimental
 --> /home/runner/work/glacier/glacier/ices/82865.rs:3:5
  |
3 | /     macro register_derive ($f:ident) {
4 | |         Box::z($f)
5 | |     }
  | |_____^
  |
  = note: see issue #39412 <https://github.com/rust-lang/rust/issues/39412> for more information
  = help: add `#![feature(decl_macro)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `82865`
 --> /home/runner/work/glacier/glacier/ices/82865.rs:1:1
  |
1 | / use x::y::z;
2 | | fn register_builtin_macros() {
3 | |     macro register_derive ($f:ident) {
4 | |         Box::z($f)
5 | |     }
6 | |     register_derive! { clone }
7 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82865.rs`

error[E0599]: no function or associated item named `z` found for struct `Box<_, _>` in the current scope
 --> /home/runner/work/glacier/glacier/ices/82865.rs:4:14
  |
4 |         Box::z($f)
  |              ^ function or associated item not found in `Box<_, _>`
5 |     }
6 |     register_derive! { clone }
  |     -------------------------- in this macro invocation
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0425, E0433, E0599, E0601, E0658.
For more information about an error, try `rustc --explain E0425`.
==============

=== stdout ===
=== stderr ===
error[E0433]: failed to resolve: use of undeclared crate or module `x`
 --> /home/runner/work/glacier/glacier/ices/82865.rs:1:5
  |
1 | use x::y::z;
  |     ^ use of undeclared crate or module `x`

error[E0425]: cannot find value `clone` in this scope
 --> /home/runner/work/glacier/glacier/ices/82865.rs:6:24
  |
6 |     register_derive! { clone }
  |                        ^^^^^ not found in this scope

error[E0658]: `macro` is experimental
 --> /home/runner/work/glacier/glacier/ices/82865.rs:3:5
  |
3 | /     macro register_derive ($f:ident) {
4 | |         Box::z($f)
5 | |     }
  | |_____^
  |
  = note: see issue #39412 <rust-lang/rust#39412> for more information
  = help: add `#![feature(decl_macro)]` to the crate attributes to enable

error[E0601]: `main` function not found in crate `82865`
 --> /home/runner/work/glacier/glacier/ices/82865.rs:1:1
  |
1 | / use x::y::z;
2 | | fn register_builtin_macros() {
3 | |     macro register_derive ($f:ident) {
4 | |         Box::z($f)
5 | |     }
6 | |     register_derive! { clone }
7 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82865.rs`

error[E0599]: no function or associated item named `z` found for struct `Box<_, _>` in the current scope
 --> /home/runner/work/glacier/glacier/ices/82865.rs:4:14
  |
4 |         Box::z($f)
  |              ^ function or associated item not found in `Box<_, _>`
5 |     }
6 |     register_derive! { clone }
  |     -------------------------- in this macro invocation
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0425, E0433, E0599, E0601, E0658.
For more information about an error, try `rustc --explain E0425`.
==============
@JohnTitor JohnTitor merged commit 60f106c into master Mar 29, 2021
@JohnTitor JohnTitor deleted the autofix/ices/82865.rs branch March 29, 2021 12:24
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