Skip to content

Commit

Permalink
Revert suggestion window size change
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jan 25, 2020
1 parent 600e385 commit 16709f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/librustc_errors/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ pub const MAX_HIGHLIGHT_LINES: usize = 6;
///
/// This should be replaced with a more involved mechanism to output multiline suggestions that
/// more closely mimmics the regular diagnostic output, where irrelevant code lines are elided.
pub const MAX_SUGGESTION_HIGHLIGHT_LINES: usize = 20;
pub const MAX_SUGGESTION_HIGHLIGHT_LINES: usize = 6;
/// Maximum number of suggestions to be shown
///
/// Arbitrary, but taken from trait import suggestion limit
Expand Down
3 changes: 1 addition & 2 deletions src/test/ui/issues/issue-22644.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ LL |
LL | as
LL |
LL |
LL | usize)
|
...

error: `<` is interpreted as a start of generic arguments for `usize`, not a shift
--> $DIR/issue-22644.rs:32:31
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ LL | dyn Foo(&isize) -> &isize >();
LL | eq::< dyn for<'a> Foo<(&'a isize,), Output=(&'a isize, &'a isize)>,
LL | dyn Foo(&isize) -> (&isize, &isize) >();
LL |
LL | let _: dyn Foo(&isize, &usize) -> &'lifetime usize;
|
...

error: aborting due to previous error

Expand Down

0 comments on commit 16709f0

Please sign in to comment.