rust/tests
Matthias Krüger 9b50092fdc
Rollup merge of #132341 - compiler-errors:raw-lt-prefix-id, r=chenyukang
Reject raw lifetime followed by `'`, like regular lifetimes do

See comment. We want to reject cases like `'r#long'id`, which currently gets interpreted as a raw lifetime (`'r#long`) followed by a lifetime (`'id`). This could have alternative lexes, such as an overlong char literal (`'r#long'`) followed by an identifier (`id`). To avoid committing to this in any case, let's reject the whole thing.

`@mattheww,` is this what you were looking for in https://github.com/rust-lang/reference/pull/1603#issuecomment-2339237325? I'd say ignore the details about the specific error message (the fact that this gets reinterpreted as a char literal is 🤷), just that because this causes a lexer error we're effectively saving syntactical space like you wanted.
2024-11-09 19:16:43 +01:00
..
assembly remove support for rustc_safe_intrinsic attribute; use rustc_intrinsic functions instead 2024-11-08 09:16:00 +01:00
auxiliary Fix typo in tests/auxiliary/minicore.rs 2024-11-03 17:32:33 +09:00
codegen Rollup merge of #132777 - durin42:llvm-20-poison-prop, r=nikic 2024-11-09 10:52:04 +01:00
codegen-units
coverage coverage: Regression test for inlining into an uninstrumented crate 2024-11-02 23:20:14 +11:00
coverage-run-rustdoc
crashes Auto merge of #132710 - matthiaskrgr:padautz, r=jieyouxu 2024-11-07 07:21:20 +00:00
debuginfo
incremental
mir-opt Rollup merge of #131913 - jieyouxu:only_debug_assertions, r=onur-ozkan 2024-11-07 18:48:21 -08:00
pretty
run-make Auto merge of #128849 - estebank:issue-89143, r=jackh726 2024-11-08 00:34:48 +00:00
rustdoc remove support for rustc_safe_intrinsic attribute; use rustc_intrinsic functions instead 2024-11-08 09:16:00 +01:00
rustdoc-gui
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Add UI regressions tests for rustdoc --show-coverage option 2024-11-04 14:46:04 +01:00
ui Rollup merge of #132341 - compiler-errors:raw-lt-prefix-id, r=chenyukang 2024-11-09 19:16:43 +01:00
ui-fulldeps Rollup merge of #132131 - celinval:smir-crate-defs, r=compiler-errors 2024-11-07 18:48:22 -08:00
COMPILER_TESTS.md