forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#133077 - cuviper:beta-next, r=cuviper
[beta] backports - Use completion item indices instead of property matching rust-lang#132987, rust-lang/rust-analyzer#18503 - Reject raw lifetime followed by `'`, like regular lifetimes do rust-lang#132341 - Only disable cache if predicate has opaques within it rust-lang#132625 - rustdoc-search: case-sensitive only when capitals are used rust-lang#133043 r? cuviper
- Loading branch information
Showing
12 changed files
with
172 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const EXPECTED = [ | ||
{ | ||
'query': 'write', | ||
'others': [ | ||
{ 'path': 'std::fmt', 'name': 'write' }, | ||
{ 'path': 'std::fs', 'name': 'write' }, | ||
{ 'path': 'std::ptr', 'name': 'write' }, | ||
{ 'path': 'std::fmt', 'name': 'Write' }, | ||
{ 'path': 'std::io', 'name': 'Write' }, | ||
{ 'path': 'std::hash::Hasher', 'name': 'write' }, | ||
], | ||
}, | ||
{ | ||
'query': 'Write', | ||
'others': [ | ||
{ 'path': 'std::fmt', 'name': 'Write' }, | ||
{ 'path': 'std::io', 'name': 'Write' }, | ||
{ 'path': 'std::fmt', 'name': 'write' }, | ||
{ 'path': 'std::fs', 'name': 'write' }, | ||
{ 'path': 'std::ptr', 'name': 'write' }, | ||
{ 'path': 'std::hash::Hasher', 'name': 'write' }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const EXPECTED = [ | ||
{ | ||
'query': 'Foo', | ||
'others': [ | ||
{ 'path': 'case', 'name': 'Foo', 'desc': 'Docs for Foo' }, | ||
{ 'path': 'case', 'name': 'foo', 'desc': 'Docs for foo' }, | ||
], | ||
}, | ||
{ | ||
'query': 'foo', | ||
'others': [ | ||
// https://github.com/rust-lang/rust/issues/133017 | ||
{ 'path': 'case', 'name': 'Foo', 'desc': 'Docs for Foo' }, | ||
{ 'path': 'case', 'name': 'foo', 'desc': 'Docs for foo' }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![allow(nonstandard_style)] | ||
|
||
/// Docs for Foo | ||
pub struct Foo; | ||
|
||
/// Docs for foo | ||
pub struct foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//@ edition: 2021 | ||
|
||
// Make sure we reject the case where a raw lifetime is immediately followed by another | ||
// lifetime. This reserves a modest amount of space for changing lexing to, for example, | ||
// delay rejection of overlong char literals like `'r#long'id`. | ||
|
||
macro_rules! w { | ||
($($tt:tt)*) => {} | ||
} | ||
|
||
w!('r#long'id); | ||
//~^ ERROR character literal may only contain one codepoint | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
error: character literal may only contain one codepoint | ||
--> $DIR/immediately-followed-by-lt.rs:11:4 | ||
| | ||
LL | w!('r#long'id); | ||
| ^^^^^^^^ | ||
| | ||
help: if you meant to write a string literal, use double quotes | ||
| | ||
LL | w!("r#long"id); | ||
| ~ ~ | ||
|
||
error: aborting due to 1 previous error | ||
|