├── .editorconfig ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .gitmodules ├── Cargo.toml ├── Changelog.md ├── LICENSE-APACHE ├── LICENSE-MIT ├── Readme.md ├── examples └── fix-json.rs ├── proptest-regressions └── replace.txt ├── src ├── diagnostics.rs ├── lib.rs └── replace.rs └── tests ├── edge-cases ├── empty.json ├── empty.rs ├── indented_whitespace.json ├── no_main.json ├── no_main.rs ├── out_of_bounds.recorded.json └── utf8_idents.recorded.json ├── edge_cases.rs ├── edition └── .gitignore ├── everything ├── .gitignore ├── E0178.fixed.rs ├── E0178.json ├── E0178.rs ├── closure-immutable-outer-variable.fixed.rs ├── closure-immutable-outer-variable.json ├── closure-immutable-outer-variable.rs ├── handle-insert-only.fixed.rs ├── handle-insert-only.json ├── handle-insert-only.rs ├── lt-generic-comp.fixed.rs ├── lt-generic-comp.json ├── lt-generic-comp.rs ├── multiple-solutions.fixed.rs ├── multiple-solutions.json ├── multiple-solutions.rs ├── replace-only-one-char.fixed.rs ├── replace-only-one-char.json ├── replace-only-one-char.rs ├── str-lit-type-mismatch.fixed.rs ├── str-lit-type-mismatch.json └── str-lit-type-mismatch.rs └── parse_and_replace.rs /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/Changelog.md -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/Readme.md -------------------------------------------------------------------------------- /examples/fix-json.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/examples/fix-json.rs -------------------------------------------------------------------------------- /proptest-regressions/replace.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/proptest-regressions/replace.txt -------------------------------------------------------------------------------- /src/diagnostics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/src/diagnostics.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/replace.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/src/replace.rs -------------------------------------------------------------------------------- /tests/edge-cases/empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/edge-cases/empty.json -------------------------------------------------------------------------------- /tests/edge-cases/empty.rs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/edge-cases/indented_whitespace.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/edge-cases/indented_whitespace.json -------------------------------------------------------------------------------- /tests/edge-cases/no_main.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/edge-cases/no_main.json -------------------------------------------------------------------------------- /tests/edge-cases/no_main.rs: -------------------------------------------------------------------------------- 1 | // This file has no main. 2 | -------------------------------------------------------------------------------- /tests/edge-cases/out_of_bounds.recorded.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/edge-cases/out_of_bounds.recorded.json -------------------------------------------------------------------------------- /tests/edge-cases/utf8_idents.recorded.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/edge-cases/utf8_idents.recorded.json -------------------------------------------------------------------------------- /tests/edge_cases.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/edge_cases.rs -------------------------------------------------------------------------------- /tests/edition/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/edition/.gitignore -------------------------------------------------------------------------------- /tests/everything/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/.gitignore -------------------------------------------------------------------------------- /tests/everything/E0178.fixed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/E0178.fixed.rs -------------------------------------------------------------------------------- /tests/everything/E0178.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/E0178.json -------------------------------------------------------------------------------- /tests/everything/E0178.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/E0178.rs -------------------------------------------------------------------------------- /tests/everything/closure-immutable-outer-variable.fixed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/closure-immutable-outer-variable.fixed.rs -------------------------------------------------------------------------------- /tests/everything/closure-immutable-outer-variable.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/closure-immutable-outer-variable.json -------------------------------------------------------------------------------- /tests/everything/closure-immutable-outer-variable.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/closure-immutable-outer-variable.rs -------------------------------------------------------------------------------- /tests/everything/handle-insert-only.fixed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/handle-insert-only.fixed.rs -------------------------------------------------------------------------------- /tests/everything/handle-insert-only.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/handle-insert-only.json -------------------------------------------------------------------------------- /tests/everything/handle-insert-only.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/handle-insert-only.rs -------------------------------------------------------------------------------- /tests/everything/lt-generic-comp.fixed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/lt-generic-comp.fixed.rs -------------------------------------------------------------------------------- /tests/everything/lt-generic-comp.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/lt-generic-comp.json -------------------------------------------------------------------------------- /tests/everything/lt-generic-comp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/lt-generic-comp.rs -------------------------------------------------------------------------------- /tests/everything/multiple-solutions.fixed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/multiple-solutions.fixed.rs -------------------------------------------------------------------------------- /tests/everything/multiple-solutions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/multiple-solutions.json -------------------------------------------------------------------------------- /tests/everything/multiple-solutions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/multiple-solutions.rs -------------------------------------------------------------------------------- /tests/everything/replace-only-one-char.fixed.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | let _x = 42; 3 | } 4 | -------------------------------------------------------------------------------- /tests/everything/replace-only-one-char.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/replace-only-one-char.json -------------------------------------------------------------------------------- /tests/everything/replace-only-one-char.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | let x = 42; 3 | } 4 | -------------------------------------------------------------------------------- /tests/everything/str-lit-type-mismatch.fixed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/str-lit-type-mismatch.fixed.rs -------------------------------------------------------------------------------- /tests/everything/str-lit-type-mismatch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/str-lit-type-mismatch.json -------------------------------------------------------------------------------- /tests/everything/str-lit-type-mismatch.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/everything/str-lit-type-mismatch.rs -------------------------------------------------------------------------------- /tests/parse_and_replace.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/rustfix/HEAD/tests/parse_and_replace.rs --------------------------------------------------------------------------------