]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #96543 - nnethercote:rm-make_token_stream-hacks, r=Aaron1011
authorYuki Okushi <jtitor@2k36.org>
Wed, 11 May 2022 04:16:30 +0000 (13:16 +0900)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 04:16:30 +0000 (13:16 +0900)
commit81c0a2d96c42bd3b21111ad7a99026949f4e9a4c
tree791724bf90207794f4b7803ec455dc2d1badcb16
parent532be942ddf8f40d086e54d157453434b16e9647
parent3cd8e9866d55ddd962e6bda92018cbf4bc9ee08f
Rollup merge of #96543 - nnethercote:rm-make_token_stream-hacks, r=Aaron1011

Remove hacks in `make_token_stream`.

`make_tokenstream` has three commented hacks, and a comment at the top
referring to #67062. These hacks have no observable effect, at least as judged
by running the test suite. The hacks were added in #82608, with an explanation
[here](https://github.com/rust-lang/rust/pull/82608#issuecomment-812877329). It
appears that one of the following is true: (a) they never did anything useful,
(b) they do something useful but we have no test coverage for them, or (c)
something has changed in the meantime that means they are no longer necessary.

This commit removes the hacks and the comments, in the hope that (b) is not
true.

r? `@Aaron1011`