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

ices/80447.sh: fixed with errors #1421

Merged
merged 1 commit into from
Sep 22, 2022
Merged

ices/80447.sh: fixed with errors #1421

merged 1 commit into from
Sep 22, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#80447

#!/bin/bash

rustc --crate-type=proc-macro - << 'EOF'
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn mac(_attrs: TokenStream, input: TokenStream) -> TokenStream {
    input
}
EOF

rustc --extern mac=$(ls librust_out.*) - << 'EOF'
pub trait Crash {
    #[mac::mac]
    fn one(s: () {
    }

    fn two();
}

fn main () {}
EOF
=== stdout ===
=== stderr ===
error: expected one of `)` or `,`, found `{`
 --> <anon>:3:11
  |
3 |     fn one(s: () {
  |           ^     -^
  |           |     |
  |           |     help: `)` may belong here
  |           unclosed delimiter

error: non-item in item list
 --> <anon>:7:1
  |
1 | pub trait Crash {
  |                 - item list starts here
...
7 | }
  | ^
  | |
  | non-item starts here
  | item list ends here

error: expected one of `!` or `::`, found `:`
 --> <anon>:3:13
  |
3 |     fn one(s: () {
  |             ^ expected one of `!` or `::`

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error: expected one of `)` or `,`, found `{`
 --> <anon>:3:11
  |
3 |     fn one(s: () {
  |           ^     -^
  |           |     |
  |           |     help: `)` may belong here
  |           unclosed delimiter

error: non-item in item list
 --> <anon>:7:1
  |
1 | pub trait Crash {
  |                 - item list starts here
...
7 | }
  | ^
  | |
  | non-item starts here
  | item list ends here

error: expected one of `!` or `::`, found `:`
 --> <anon>:3:13
  |
3 |     fn one(s: () {
  |             ^ expected one of `!` or `::`

error: aborting due to 3 previous errors

==============
@JohnTitor JohnTitor merged commit 682c621 into master Sep 22, 2022
@JohnTitor JohnTitor deleted the autofix/ices/80447.sh branch September 22, 2022 10:48
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