Repository navigation
1.99 beta crater regression: "expected item, found keyword let" #162349
Copy link
Copy link
Closed as duplicate
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcE-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Exampleregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
This regression was found by the 1.99 crater --release mode run.
[INFO] [stdout] failures:
[INFO] [stdout]
[INFO] [stdout] ---- src/lib.rs - split_rand_vec_eq (line 43) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout] --> src/lib.rs:45:1
[INFO] [stdout] |
[INFO] [stdout] 45 | let vec = vec![1, 2, 3, 4, 5, 6, 7];
[INFO] [stdout] | ^^^
[INFO] [stdout] | |
[INFO] [stdout] | `let` cannot be used for global variables
[INFO] [stdout] | help: consider using `static` or `const` instead of `let`
[INFO] [stdout] |
[INFO] [stdout] = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout]
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - split_rand_hashset_eq (line 72) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout] --> src/lib.rs:74:1
[INFO] [stdout] |
[INFO] [stdout] 74 | let vec = vec![1, 2, 3, 4, 5, 6, 7];
[INFO] [stdout] | ^^^
[INFO] [stdout] | |
[INFO] [stdout] | `let` cannot be used for global variables
[INFO] [stdout] | help: consider using `static` or `const` instead of `let`
[INFO] [stdout] |
[INFO] [stdout] = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout]
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - split_rand_vec (line 20) stdout ----
[INFO] [stdout] error: expected item, found keyword `let`
[INFO] [stdout] --> src/lib.rs:22:1
[INFO] [stdout] |
[INFO] [stdout] 22 | let vec = vec![1, 2, 3, 4, 5, 6, 7, 8];
[INFO] [stdout] | ^^^
[INFO] [stdout] | |
[INFO] [stdout] | `let` cannot be used for global variables
[INFO] [stdout] | help: consider using `static` or `const` instead of `let`
[INFO] [stdout] |
[INFO] [stdout] = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 1 previous error
- https://crater-reports.s3.amazonaws.com/beta-release-1.99-3/1.99.0-beta.1%2Bcargoflags=--release/gh/OtmarKirch.rust-helpers/log.txt
- https://crater-reports.s3.amazonaws.com/beta-release-1.99-3/1.99.0-beta.1%2Bcargoflags=--release/reg/signaled-1.0.2/log.txt
- https://crater-reports.s3.amazonaws.com/beta-release-1.99-3/1.99.0-beta.1%2Bcargoflags=--release/reg/yoshi-std-0.1.5/log.txt (note that this crate has two failures, the other one is 1.99 beta crater regression: "expected item after attributes" #162352)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcE-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Exampleregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Activity
kpreid commentedon Sep 6, 2026
These 3 failing doctests all have last lines which are doc comments:
This doctest should not parse. So, if this test used to pass, it did so erroneously, perhaps by the doc comment attaching to some item appended to the doctest.
Rollup merge of rust-lang#162386 - JonathanBrouwer:doctest-attribute,…
Unrolled build for #162386 in rollup 162434
Rollup merge of #162386 - JonathanBrouwer:doctest-attribute, r=mejrs