You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notes about tests:
- tests/ui/macros/stringify.rs: the `c2` macro is no longer needed,
because the TokenStream pretty printer is now used for all cases.
- tests/ui/rfcs/rfc-2294-if-let-guard/feature-gate.rs: some messages are
now duplicated due to repeated parsing.
- tests/ui/rfcs/rfc-2497-if-let-chains/disallowed-positions*.rs: ditto.
XXX: Getting a test failure here:
```
Building tool error_index_generator (stage1 -> stage2, x86_64-unknown-linux-gnu)
Compiling cfg-if v1.0.0
...
Compiling mdbook v0.4.37
error: internal compiler error: the following error was constructed but not emitted
error: unexpected token: keyword `self`
--> /home/njn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mdbook-0.4.37/src/book/summary.rs:280:31
|
280 | ... bail!(self.parse_error("Suffix chapters cannot be followed by a list"));
| ^^^^
thread 'rustc' panicked at /home/njn/dev/rust3/compiler/rustc_errors/src/diagnostic.rs:1375:17:
error was constructed but not emitted
```
I get a similar compile error (not ICE) in a vanilla compiler if I change `can_begin_maybe_minus` to accept `NtExpr` without checking that `e` is a `Lit` or `Unary`
error: format argument must be a string literal
--> /home/njn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mdbook-0.4.37/src/book/summary.rs:280:31
|
280 | ... bail!(self.parse_error("Suffix chapters cannot be followed by a list"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: you might be missing a string literal to format with
|
280 | bail!("{}", self.parse_error("Suffix chapters cannot be followed by a list"));
| +++++
0 commit comments