mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
Update tests to use the absolute position for small parent heuristic
This commit is contained in:
parent
f46f4b5f66
commit
680c65dc97
@ -151,7 +151,8 @@ fn try_shorthand() {
|
||||
let zzzz = expr?.another?.another?.another?.another?;
|
||||
let aaa = x??????????????????????????????????????????????????????????????????????????;
|
||||
|
||||
let y = a.very
|
||||
let y = a
|
||||
.very
|
||||
.loooooooooooooooooooooooooooooooooooooong()
|
||||
.chain()
|
||||
.inside()
|
||||
@ -206,9 +207,8 @@ fn issue2126() {
|
||||
{
|
||||
{
|
||||
{
|
||||
let x = self.span_from(
|
||||
sub_span.expect("No span found for struct arant variant"),
|
||||
);
|
||||
let x = self
|
||||
.span_from(sub_span.expect("No span found for struct arant variant"));
|
||||
self.sspanpan_from_span(
|
||||
sub_span.expect("No span found for struct variant"),
|
||||
);
|
||||
|
@ -25,7 +25,8 @@ fn main() {
|
||||
// #1380
|
||||
{
|
||||
{
|
||||
let creds = self.client
|
||||
let creds = self
|
||||
.client
|
||||
.client_credentials(&self.config.auth.oauth2.id, &self.config.auth.oauth2.secret)?;
|
||||
}
|
||||
}
|
||||
|
@ -283,6 +283,7 @@ fn issue_1862() {
|
||||
}
|
||||
|
||||
fn issue_1878() {
|
||||
let channel: &str = seq.next_element()?
|
||||
let channel: &str = seq
|
||||
.next_element()?
|
||||
.ok_or_else(|| de::Error::invalid_length(2, &self))?;
|
||||
}
|
||||
|
@ -404,7 +404,8 @@ impl Foo {
|
||||
let x = match () {
|
||||
() => {
|
||||
let i;
|
||||
i == self.install_config
|
||||
i == self
|
||||
.install_config
|
||||
.storage
|
||||
.experimental_compressed_block_size as usize
|
||||
}
|
||||
|
@ -3,7 +3,8 @@
|
||||
fn main() {
|
||||
let x = some_expr()?;
|
||||
|
||||
let y = a.very
|
||||
let y = a
|
||||
.very
|
||||
.loooooooooooooooooooooooooooooooooooooong()
|
||||
.chain()
|
||||
.inside()
|
||||
|
Loading…
Reference in New Issue
Block a user