mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
b7bc8d5cb7
There were three issues previously: * The self argument was pinned, despite Iterator::next taking an unpinned mutable reference. * A resume argument was passed, despite Iterator::next not having one. * The return value was CoroutineState<Item, ()> rather than Option<Item> While these things just so happened to work with the LLVM backend, cg_clif does much stricter checks when trying to assign a value to a place. In addition it can't handle the mismatch between the amount of arguments specified by the FnAbi and the FnSig.
43 lines
1.4 KiB
TOML
43 lines
1.4 KiB
TOML
# Run rustfmt with this config (it should be picked up automatically).
|
|
version = "Two"
|
|
use_small_heuristics = "Max"
|
|
merge_derives = false
|
|
|
|
# by default we ignore everything in the repository
|
|
# tidy only checks files which are not ignored, each entry follows gitignore style
|
|
ignore = [
|
|
"/build/",
|
|
"/*-build/",
|
|
"/build-*/",
|
|
"/vendor/",
|
|
|
|
# tests for now are not formatted, as they are sometimes pretty-printing constrained
|
|
# (and generally rustfmt can move around comments in UI-testing incompatible ways)
|
|
"tests",
|
|
|
|
# do not format submodules
|
|
# FIXME: sync submodule list with tidy/bootstrap/etc
|
|
# tidy/src/walk.rs:filter_dirs
|
|
"library/backtrace",
|
|
"library/portable-simd",
|
|
"library/stdarch",
|
|
"compiler/rustc_codegen_gcc",
|
|
"src/doc/book",
|
|
"src/doc/edition-guide",
|
|
"src/doc/embedded-book",
|
|
"src/doc/nomicon",
|
|
"src/doc/reference",
|
|
"src/doc/rust-by-example",
|
|
"src/doc/rustc-dev-guide",
|
|
"src/llvm-project",
|
|
"src/tools/cargo",
|
|
"src/tools/clippy",
|
|
"src/tools/miri",
|
|
"src/tools/rust-analyzer",
|
|
"src/tools/rustfmt",
|
|
|
|
# these are ignored by a standard cargo fmt run
|
|
"compiler/rustc_codegen_cranelift/y.rs", # running rustfmt breaks this file
|
|
"compiler/rustc_codegen_cranelift/scripts",
|
|
"compiler/rustc_codegen_cranelift/example/gen_block_iterate.rs", # uses edition 2024
|
|
]
|