Skip to content

test to_string_in_format_args_incremental fails in a read-only working directory #11126

Open
@Noratrieb

Description

@Noratrieb

Description

The test creates a file in the current working directory, which doesn't work in rust-lang/rust CI. It should be changed to create the incremental directory somewhere else, I'm not sure what the best solution would be here.

//@run-rustfix
//@compile-flags: -C incremental=target/debug/test/incr

// see https://github.com/rust-lang/rust-clippy/issues/10969

fn main() {
    let s = "Hello, world!";
    println!("{}", s.to_string());
}

I deleted the test in rust-lang/rust#113450 so it will be removed in the next sync.

cc @Alexendoo @flip1995 @oli-obk

Version

master, 3a1fc266654b9b56c07554eff3d5956bb84d8ef5

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions