Rust 1.100.1 Fixes an Iterator Regression
If an Iterator error appeared after moving to Rust 1.100.0, compare the same build on 1.100.1 before changing your source or dependencies.
If a Rust build started saying a type “is not an iterator” right after you moved to Rust 1.100.0, check the compiler version before rewriting the code. On November 27, the Rust release team published 1.100.1 to fix a compiler regression that caused some valid Iterator implementations to go unrecognized.
A trait describes what a type can do. Iterator, for example, describes a type that can yield items one at a time. The bug made Rust reject some types that already met those requirements. The release team traced the regression to a change involving an unstable version of the trait and reverted that change. Stable projects could be affected even though they couldn’t use the unstable feature. The issue tracker includes a reported E0277 error involving objc2 0.4.1. The fix is in the stable patch, so you don’t need to switch to nightly.
Compare the same build on both versions
The most useful clue is when the error appeared. If a commit passed before the upgrade and failed on 1.100.0, compare that same commit on 1.100.0 and 1.100.1. Keep the target, feature flags, environment, and failing build step the same. If the repository has a committed Cargo.lock, keep it in place. Updating dependencies or rewriting the iterator while changing the toolchain masks which change made the difference.
For a project managed with rustup, you can run the numbered patch directly without making it your default. Here is the comparison for a project whose failing step was cargo test --locked and which already has a committed lockfile. Run it from the directory of a project you trust. The install commands add local toolchains, and tests can run project and dependency code. If a version is already installed, skip its install command. Before comparing the test results, confirm the version checks report the toolchains you requested.
rustup toolchain install 1.100.0
rustup toolchain install 1.100.1
rustc +1.100.0 --version
cargo +1.100.0 --version
rustc +1.100.1 --version
cargo +1.100.1 --version
cargo +1.100.0 test --locked
cargo +1.100.1 test --locked
If CI failed at cargo check or cargo build, use that command and its original flags on both toolchains instead of substituting a test. --locked tells Cargo to fail rather than create or change the lockfile. If your project intentionally has no committed lockfile, don’t copy that switch blindly; keep the resolved dependencies comparable before attributing the result to Rust. These examples follow the Rustup and Cargo documentation. No project was built for this article.
Make the fix where the version is selected
If the same build fails on 1.100.0 and passes on 1.100.1, that is a strong reason to try the patch in whichever configuration selected 1.100.0. Look at the project’s rust-toolchain.toml and the version configured by the failing CI job. Updating rustup’s global stable toolchain does not change an exact project or CI pin. Update the pin that actually controls the failing job, then verify the version printed by that job and rerun the original workflow. Testing the patch doesn’t require raising your project’s stated minimum supported Rust version.
If both toolchains fail with the same error, don’t assume the release note explains it. Save the first diagnostic, confirm you reproduced the same target and features, and investigate the trait requirements or dependency involved. The value of a small patch is that you can test one explanation before changing the code to fit it.
Comments ()