Update tests to use the absolute position for small parent heuristic

This commit is contained in:
topecongiro 2018-05-08 06:23:14 +09:00
parent f46f4b5f66
commit 680c65dc97
5 changed files with 12 additions and 8 deletions

View File

@ -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"),
);

View File

@ -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)?;
}
}

View File

@ -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))?;
}

View File

@ -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
}

View File

@ -3,7 +3,8 @@
fn main() {
let x = some_expr()?;
let y = a.very
let y = a
.very
.loooooooooooooooooooooooooooooooooooooong()
.chain()
.inside()