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

ices/109148.rs: fixed with errors #1591

Merged
merged 1 commit into from
May 24, 2023
Merged

ices/109148.rs: fixed with errors #1591

merged 1 commit into from
May 24, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#109148

#[std( = )]
extern crate blah as std;
use std::arch;

fn main() {}
=== stdout ===
=== stderr ===
error[E0463]: can't find crate for `blah`
 --> /home/runner/work/glacier/glacier/ices/109148.rs:2:1
  |
2 | extern crate blah as std;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
 --> /home/runner/work/glacier/glacier/ices/109148.rs:2:1
  |
2 | extern crate blah as std;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find attribute `std` in this scope
 --> /home/runner/work/glacier/glacier/ices/109148.rs:1:3
  |
1 | #[std( = )]
  |   ^^^
  |
  = note: `std` is in scope, but it is a crate, not an attribute

warning: unused import: `std::arch`
 --> /home/runner/work/glacier/glacier/ices/109148.rs:3:5
  |
3 | use std::arch;
  |     ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

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

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

=== stdout ===
=== stderr ===
error[E0463]: can't find crate for `blah`
 --> /home/runner/work/glacier/glacier/ices/109148.rs:2:1
  |
2 | extern crate blah as std;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: macro-expanded `extern crate` items cannot shadow names passed with `--extern`
 --> /home/runner/work/glacier/glacier/ices/109148.rs:2:1
  |
2 | extern crate blah as std;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find attribute `std` in this scope
 --> /home/runner/work/glacier/glacier/ices/109148.rs:1:3
  |
1 | #[std( = )]
  |   ^^^
  |
  = note: `std` is in scope, but it is a crate, not an attribute

warning: unused import: `std::arch`
 --> /home/runner/work/glacier/glacier/ices/109148.rs:3:5
  |
3 | use std::arch;
  |     ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

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

For more information about this error, try `rustc --explain E0463`.
==============
@JohnTitor JohnTitor merged commit 53fb14d into master May 24, 2023
@JohnTitor JohnTitor deleted the autofix/ices/109148.rs branch May 24, 2023 21:37
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