diff --git a/src/doc/rustc-dev-guide/ci/sembr/src/main.rs b/src/doc/rustc-dev-guide/ci/sembr/src/main.rs index 4038f112d59fd..b9d659d40d365 100644 --- a/src/doc/rustc-dev-guide/ci/sembr/src/main.rs +++ b/src/doc/rustc-dev-guide/ci/sembr/src/main.rs @@ -45,14 +45,16 @@ fn main() -> Result<()> { continue; } let old = fs::read_to_string(&path)?; - let new = lengthen_lines(&comply(&old), cli.line_length_limit); + let new = comply(&old); if new == old { compliant.push(path.clone()); - } else if cli.overwrite { - fs::write(&path, new)?; - made_compliant.push(path.clone()); } else { - not_compliant.push(path.clone()); + if cli.overwrite { + fs::write(&path, lengthen_lines(&new, cli.line_length_limit))?; + made_compliant.push(path.clone()); + } else { + not_compliant.push(path.clone()); + } } } } diff --git a/src/doc/rustc-dev-guide/rust-version b/src/doc/rustc-dev-guide/rust-version index ea416dc27b52d..d33dd7b83a6a7 100644 --- a/src/doc/rustc-dev-guide/rust-version +++ b/src/doc/rustc-dev-guide/rust-version @@ -1 +1 @@ -f53b654a8882fd5fc036c4ca7a4ff41ce32497a6 +f2b291d902bfde7d7f209fc3a64908134bcef201 diff --git a/src/doc/rustc-dev-guide/src/autodiff/installation.md b/src/doc/rustc-dev-guide/src/autodiff/installation.md index 648e6c0ccef6f..a1e802ffaea5e 100644 --- a/src/doc/rustc-dev-guide/src/autodiff/installation.md +++ b/src/doc/rustc-dev-guide/src/autodiff/installation.md @@ -6,7 +6,7 @@ For the meantime, you can download up-to-date builds to enable `std::autodiff` o **Linux**, with `x86_64-unknown-linux-gnu` or `aarch64-unknown-linux-gnu` **Windows**, with `x86_64-llvm-mingw` or `aarch64-llvm-mingw` -You can also download slightly outdated builds for **Apple** (aarch64-apple), which should generally work for now. +In the past you could also download builds for **Apple** (aarch64-apple), however they are not usable at the moment. If you need any other platform, you can build rustc including autodiff from source. Please open an issue if you want to help enabling automatic builds for your prefered target. @@ -24,7 +24,7 @@ For now, you'll have to manually download and copy it. 5) Copy the artifact (libEnzyme-22.so for linux, libEnzyme-22.dylib for apple, etc.), which should be in a folder named `enzyme-preview`, to your rust toolchain directory. E.g. for linux: `cp ~/Downloads/enzyme-nightly-x86_64-unknown-linux-gnu/enzyme-preview/lib/rustlib/x86_64-unknown-linux-gnu/lib/libEnzyme-22.so ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib` Apple support was temporarily reverted, due to downstream breakages. -If you want to download autodiff for apple, please look at the artifacts from this [`run`]. +Please (currently) build it from source. ## Installation guide for Nix user. @@ -111,8 +111,7 @@ docker cp :/rust/build/dist/rust-nightly-x86_64-unknown-linux-gnu.tar. Afterwards we can create a new (pre-release) tag on the EnzymeAD/rust repository and make a PR against the EnzymeAD/enzyme-explorer repository to update the tag. Remember to ping `tgymnich` on the PR to run his update script. Note: We should archive EnzymeAD/rust and update the instructions here. -The explorer should soon -be able to get the rustc toolchain from the official rust servers. +The explorer should soon be able to get the rustc toolchain from the official rust servers. ## Build instruction for Enzyme itself @@ -144,5 +143,4 @@ This will build Enzyme, and you can find it in `Enzyme/enzyme/build/lib/