rust/library/alloc
Nicholas Nethercote 9828e960ab Remove __rust_force_expr.
This was added (with a different name) to improve an error message. It
is no longer needed -- removing it changes the error message, but overall
I think the new message is no worse:
- the mention of `#` in the first line is a little worse,
- but the extra context makes it very clear what the problem is, perhaps
  even clearer than the old message,
- and the removal of the note about the `expr` fragment (an internal
  detail of `__rust_force_expr`) is an improvement.

Overall I think the error is quite clear and still far better than the
old message that prompted #61933, which didn't even mention patterns.

The motivation for this is #124141, which will cause pasted
metavariables to be tokenized and reparsed instead of the AST node being
cached. This change in behaviour occasionally has a non-zero perf cost,
and `__rust_force_expr` causes the tokenize/reparse step to occur twice.
Removing `__rust_force_expr` greatly reduces the extra overhead for the
`deep-vector` benchmark.
2024-06-25 14:35:09 +10:00
..
benches disable benches in Miri 2024-04-07 09:58:10 +02:00
src Remove __rust_force_expr. 2024-06-25 14:35:09 +10:00
tests Rollup merge of #124012 - slanterns:as_slice_stabilize, r=BurntSushi 2024-06-07 20:14:27 +02:00
Cargo.toml Rollup merge of #123803 - Sp00ph:shrink_to_fix, r=Mark-Simulacrum 2024-05-25 22:15:17 +02:00