Tweak output
This commit is contained in:
parent
ab04080b56
commit
6f64432a39
@ -2282,7 +2282,7 @@ impl FileWithAnnotatedLines {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find overlapping multiline annotations, put them at different depths
|
// Find overlapping multiline annotations, put them at different depths
|
||||||
multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, ml.line_end));
|
multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, usize::MAX - ml.line_end));
|
||||||
for (_, ann) in multiline_annotations.clone() {
|
for (_, ann) in multiline_annotations.clone() {
|
||||||
for (_, a) in multiline_annotations.iter_mut() {
|
for (_, a) in multiline_annotations.iter_mut() {
|
||||||
// Move all other multiline annotations overlapping with this one
|
// Move all other multiline annotations overlapping with this one
|
||||||
|
@ -10,10 +10,10 @@ LL | fn oom(
|
|||||||
LL | || info: &Layout,
|
LL | || info: &Layout,
|
||||||
LL | || ) -> ()
|
LL | || ) -> ()
|
||||||
| ||_______- arguments to this function are incorrect
|
| ||_______- arguments to this function are incorrect
|
||||||
LL | | {
|
LL | | {
|
||||||
LL | | loop {}
|
LL | | loop {}
|
||||||
LL | | }
|
LL | | }
|
||||||
| |_^ expected `&Layout`, found struct `Layout`
|
| |__^ expected `&Layout`, found struct `Layout`
|
||||||
|
|
|
|
||||||
note: function defined here
|
note: function defined here
|
||||||
--> $DIR/alloc-error-handler-bad-signature-1.rs:10:4
|
--> $DIR/alloc-error-handler-bad-signature-1.rs:10:4
|
||||||
@ -36,10 +36,10 @@ LL | fn oom(
|
|||||||
LL | || info: &Layout,
|
LL | || info: &Layout,
|
||||||
LL | || ) -> ()
|
LL | || ) -> ()
|
||||||
| ||_______^ expected `!`, found `()`
|
| ||_______^ expected `!`, found `()`
|
||||||
LL | | {
|
LL | | {
|
||||||
LL | | loop {}
|
LL | | loop {}
|
||||||
LL | | }
|
LL | | }
|
||||||
| |_- expected `!` because of return type
|
| |__- expected `!` because of return type
|
||||||
|
|
|
|
||||||
= note: expected type `!`
|
= note: expected type `!`
|
||||||
found unit type `()`
|
found unit type `()`
|
||||||
|
@ -9,12 +9,10 @@ LL | fn oom(
|
|||||||
| ||
|
| ||
|
||||||
LL | || info: Layout,
|
LL | || info: Layout,
|
||||||
LL | || ) {
|
LL | || ) {
|
||||||
| || -
|
| ||_- arguments to this function are incorrect
|
||||||
| ||_|
|
LL | | loop {}
|
||||||
| | arguments to this function are incorrect
|
LL | | }
|
||||||
LL | | loop {}
|
| |__^ expected struct `Layout`, found struct `core::alloc::Layout`
|
||||||
LL | | }
|
|
||||||
| |_^ expected struct `Layout`, found struct `core::alloc::Layout`
|
|
||||||
|
|
|
|
||||||
= note: struct `core::alloc::Layout` and struct `Layout` have similar names, but are actually distinct types
|
= note: struct `core::alloc::Layout` and struct `Layout` have similar names, but are actually distinct types
|
||||||
note: struct `core::alloc::Layout` is defined in crate `core`
|
note: struct `core::alloc::Layout` is defined in crate `core`
|
||||||
@ -47,12 +45,10 @@ LL | fn oom(
|
|||||||
| ||
|
| ||
|
||||||
LL | || info: Layout,
|
LL | || info: Layout,
|
||||||
LL | || ) {
|
LL | || ) {
|
||||||
| || ^
|
| ||_^ expected `!`, found `()`
|
||||||
| ||_|
|
LL | | loop {}
|
||||||
| | expected `!`, found `()`
|
LL | | }
|
||||||
LL | | loop {}
|
| |__- expected `!` because of return type
|
||||||
LL | | }
|
|
||||||
| |_- expected `!` because of return type
|
|
||||||
|
|
|
|
||||||
= note: expected type `!`
|
= note: expected type `!`
|
||||||
found unit type `()`
|
found unit type `()`
|
||||||
|
@ -7,9 +7,9 @@ LL | for (i, _) in & & &
|
|||||||
| ||
|
| ||
|
||||||
LL | || & &v
|
LL | || & &v
|
||||||
| ||___________- help: consider removing 5 leading `&`-references
|
| ||___________- help: consider removing 5 leading `&`-references
|
||||||
LL | | .iter()
|
LL | | .iter()
|
||||||
LL | | .enumerate() {
|
LL | | .enumerate() {
|
||||||
| |____________________^ `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
|
| |_____________________^ `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
|
||||||
|
|
|
|
||||||
= help: the trait `Iterator` is not implemented for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
|
= help: the trait `Iterator` is not implemented for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
|
||||||
= note: required for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` to implement `IntoIterator`
|
= note: required for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` to implement `IntoIterator`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user