[INFO] cloning repository https://github.com/mormahr/lalrpop-shift-repro
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mormahr/lalrpop-shift-repro" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmormahr%2Flalrpop-shift-repro", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmormahr%2Flalrpop-shift-repro'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3f3566242581a71c82a1bb62aac94ec804b2dbde
[INFO] documenting mormahr/lalrpop-shift-repro against nightly for pr-99919
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmormahr%2Flalrpop-shift-repro" "/workspace/builds/worker-5/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/mormahr/lalrpop-shift-repro on toolchain nightly
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/mormahr/lalrpop-shift-repro
[INFO] finished tweaking git repo https://github.com/mormahr/lalrpop-shift-repro
[INFO] tweaked toml for git repo https://github.com/mormahr/lalrpop-shift-repro written to /workspace/builds/worker-5/source/Cargo.toml
[INFO] crate git repo https://github.com/mormahr/lalrpop-shift-repro already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5250bf8748d8ae15c0308ecf5c469d504abcb291d291fb1448597e40aa70b86f
[INFO] running `Command { std: "docker" "start" "-a" "5250bf8748d8ae15c0308ecf5c469d504abcb291d291fb1448597e40aa70b86f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5250bf8748d8ae15c0308ecf5c469d504abcb291d291fb1448597e40aa70b86f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5250bf8748d8ae15c0308ecf5c469d504abcb291d291fb1448597e40aa70b86f", kill_on_drop: false }`
[INFO] [stdout] 5250bf8748d8ae15c0308ecf5c469d504abcb291d291fb1448597e40aa70b86f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 42d7c398a83de9454be3307822469798bac47c73de6a9c83a1112608c8784317
[INFO] running `Command { std: "docker" "start" "-a" "42d7c398a83de9454be3307822469798bac47c73de6a9c83a1112608c8784317", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.112
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling smallvec v1.7.0
[INFO] [stderr]    Compiling siphasher v0.3.7
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.4
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling bit-vec v0.6.3
[INFO] [stderr]    Compiling precomputed-hash v0.1.1
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling diff v0.1.12
[INFO] [stderr]    Compiling pico-args v0.4.2
[INFO] [stderr]     Checking regex-syntax v0.6.25
[INFO] [stderr]    Compiling instant v0.1.12
[INFO] [stderr]    Compiling indexmap v1.7.0
[INFO] [stderr]    Compiling lock_api v0.4.5
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]    Compiling itertools v0.10.3
[INFO] [stderr]    Compiling lalrpop-util v0.19.6
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling bit-set v0.5.2
[INFO] [stderr]    Compiling phf_shared v0.8.0
[INFO] [stderr]    Compiling ena v0.14.0
[INFO] [stderr]    Compiling petgraph v0.5.1
[INFO] [stderr]    Compiling dirs-sys-next v0.1.2
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling dirs-next v2.0.0
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling term v0.7.0
[INFO] [stderr]    Compiling string_cache v0.8.2
[INFO] [stderr]    Compiling ascii-canvas v3.0.0
[INFO] [stderr]     Checking regex v1.5.4
[INFO] [stderr]    Compiling lalrpop v0.19.6
[INFO] [stderr]    Compiling lalrpop-shift-repro v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: failed to run custom build command for `lalrpop-shift-repro v0.1.0 (/opt/rustwide/workdir)`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/lalrpop-shift-repro-510319df532d5b5b/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   processing file `/opt/rustwide/workdir/src/test.lalrpop`
[INFO] [stderr]   /opt/rustwide/workdir/src/test.lalrpop:37:5: 37:8: Conflict detected
[INFO] [stderr] 
[INFO] [stderr]       when in this state:
[INFO] [stderr]     Expr = Expr (*) "+" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = Expr (*) "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt = Expr (*) ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr] 
[INFO] [stderr]     and looking at a token `"+"` we can reduce to a `Stmt` but we can also shift
[INFO] [stderr] 
[INFO] [stderr]   /opt/rustwide/workdir/src/test.lalrpop:37:5: 37:8: Local ambiguity detected
[INFO] [stderr] 
[INFO] [stderr]     The problem arises after having observed the following symbols in the input:
[INFO] [stderr]       Stmt+ Expr
[INFO] [stderr]     At that point, if the next token is a `"-"`, then the parser can proceed in
[INFO] [stderr]     two different ways.
[INFO] [stderr] 
[INFO] [stderr]     First, the parser could execute the production at
[INFO] [stderr]     /opt/rustwide/workdir/src/test.lalrpop:37:5: 37:8, which would consume the top
[INFO] [stderr]     1 token(s) from the stack and produce a `Stmt`. This might then yield a parse
[INFO] [stderr]     tree like
[INFO] [stderr]       Expr    ╷ Stmt
[INFO] [stderr]       ├─Stmt──┤    │
[INFO] [stderr]       ├─Stmt+─┘    │
[INFO] [stderr]       └─Stmt+──────┘
[INFO] [stderr] 
[INFO] [stderr]     Alternatively, the parser could shift the `"-"` token and later use it to
[INFO] [stderr]     construct a `Expr`. This might then yield a parse tree like
[INFO] [stderr]       Stmt+ Expr "-" Unary
[INFO] [stderr]       │     ├─Expr───────┤
[INFO] [stderr]       │     └─Stmt───────┤
[INFO] [stderr]       └─Stmt+────────────┘
[INFO] [stderr] 
[INFO] [stderr]     See the LALRPOP manual for advice on making your grammar LR(1).
[INFO] [stderr] 
[INFO] [stderr]   /opt/rustwide/workdir/src/test.lalrpop:41:5: 41:9: Conflict detected
[INFO] [stderr] 
[INFO] [stderr]       when in this state:
[INFO] [stderr]     Expr = (*) Expr "+" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = (*) Expr "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = (*) Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Num = (*) r#"[0-9]+"# ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt = (*) Expr ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt+ = Stmt+ (*) Stmt ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmts = Stmt+ (*) ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Term = (*) Num ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Term = (*) "(" Expr ")" ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Unary = (*) Term ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Unary = (*) "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr] 
[INFO] [stderr]     and looking at a token `"("` we can reduce to a `Stmts` but we can also shift
[INFO] [stderr] 
[INFO] [stderr]   /opt/rustwide/workdir/src/test.lalrpop:41:5: 41:9: Conflict detected
[INFO] [stderr] 
[INFO] [stderr]       when in this state:
[INFO] [stderr]     Expr = (*) Expr "+" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = (*) Expr "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = (*) Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Num = (*) r#"[0-9]+"# ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt = (*) Expr ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt+ = Stmt+ (*) Stmt ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmts = Stmt+ (*) ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Term = (*) Num ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Term = (*) "(" Expr ")" ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Unary = (*) Term ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Unary = (*) "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr] 
[INFO] [stderr]     and looking at a token `"-"` we can reduce to a `Stmts` but we can also shift
[INFO] [stderr] 
[INFO] [stderr]   /opt/rustwide/workdir/src/test.lalrpop:41:5: 41:9: Conflict detected
[INFO] [stderr] 
[INFO] [stderr]       when in this state:
[INFO] [stderr]     Expr = (*) Expr "+" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = (*) Expr "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = (*) Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Num = (*) r#"[0-9]+"# ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt = (*) Expr ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt+ = Stmt+ (*) Stmt ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmts = Stmt+ (*) ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Term = (*) Num ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Term = (*) "(" Expr ")" ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Unary = (*) Term ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Unary = (*) "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr] 
[INFO] [stderr]     and looking at a token `r#"[0-9]+"#` we can reduce to a `Stmts` but we can
[INFO] [stderr]     also shift
[INFO] [stderr] 
[INFO] [stderr]   /opt/rustwide/workdir/src/test.lalrpop:37:5: 37:8: Conflict detected
[INFO] [stderr] 
[INFO] [stderr]       when in this state:
[INFO] [stderr]     Expr = Expr (*) "+" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Expr = Expr (*) "-" Unary ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr]     Stmt = Expr (*) ["(", ")", "+", "-", r#"[0-9]+"#, EOF]
[INFO] [stderr] 
[INFO] [stderr]     and looking at a token `"+"` we can reduce to a `Stmt` but we can also shift
[INFO] [stderr] 
[INFO] [stderr]   /opt/rustwide/workdir/src/test.lalrpop:37:5: 37:8: Local ambiguity detected
[INFO] [stderr] 
[INFO] [stderr]     The problem arises after having observed the following symbols in the input:
[INFO] [stderr]       Stmt+ Expr
[INFO] [stderr]     At that point, if the next token is a `"-"`, then the parser can proceed in
[INFO] [stderr]     two different ways.
[INFO] [stderr] 
[INFO] [stderr]     First, the parser could execute the production at
[INFO] [stderr]     /opt/rustwide/workdir/src/test.lalrpop:37:5: 37:8, which would consume the top
[INFO] [stderr]     1 token(s) from the stack and produce a `Stmt`. This might then yield a parse
[INFO] [stderr]     tree like
[INFO] [stderr]       Expr    ╷ Stmt
[INFO] [stderr]       ├─Stmt──┤    │
[INFO] [stderr]       ├─Stmt+─┘    │
[INFO] [stderr]       └─Stmt+──────┘
[INFO] [stderr] 
[INFO] [stderr]     Alternatively, the parser could shift the `"-"` token and later use it to
[INFO] [stderr]     construct a `Expr`. This might then yield a parse tree like
[INFO] [stderr]       Stmt+ Expr "-" Unary
[INFO] [stderr]       │     ├─Expr───────┤
[INFO] [stderr]       │     └─Stmt───────┤
[INFO] [stderr]       └─Stmt+────────────┘
[INFO] [stderr] 
[INFO] [stderr]     See the LALRPOP manual for advice on making your grammar LR(1).
[INFO] running `Command { std: "docker" "inspect" "42d7c398a83de9454be3307822469798bac47c73de6a9c83a1112608c8784317", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "42d7c398a83de9454be3307822469798bac47c73de6a9c83a1112608c8784317", kill_on_drop: false }`
[INFO] [stdout] 42d7c398a83de9454be3307822469798bac47c73de6a9c83a1112608c8784317
