Skip to content

Instantly share code, notes, and snippets.

@sgrif
Created September 26, 2017 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgrif/3534d79e5999cc3ce4dc1a036c678f9e to your computer and use it in GitHub Desktop.
Save sgrif/3534d79e5999cc3ce4dc1a036c678f9e to your computer and use it in GitHub Desktop.
cargo +nightly rustc --features 'postgres sqlite chrono unstable' \
-- -D missing_docs --error-format json 2>&1 | \
grep '^{' | \
rq -jH 'filter [level, error] |
flatMap spans |
map (s) => { {file: `${s.file_name}:${s.line_start}`, text: s.text[0].text.trim()} } |
uniqBy file |
map (x) => { `${x.file} ${x.text}` }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment