Rust-GCC / Rust-GCC/gccrs

Unimplemented macro println

Open
#1,389 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
2.9k
Forks
231
Avg merge
19h 55m
Merged PRs (30d)
67

Description

I tried this code (error encountered in the wild here), but I have reduced it to a testcase.:

fn main()
{
  println!("salutate");
}

I expected to see this happen: The code to compile and run, printing salutate. This code works successfully with rustc greetings.rs

Instead, this happened:

greetings.rs:3:3: error: unknown macro 2: [println]
    3 |   println!("salutate");
      |   ^
Meta

I was using version d155a54785cb7b40ada7ae748997d717a4b27ab9.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reduced greetings.rs testcase and compare its behavior with rustc; the original affected path is compiler/rustc/build.rs. Done means gccrs accepts println!("salutate") and the program compiles, runs, and prints salutate.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.