Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add recursive settings and clean up test whitelist #4142

Merged

Commits on Apr 27, 2020

  1. add recursive mode and clean up whitelist where we can

    bradleypmartin committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    60ed5e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2020

  1. move recursive setting to top of lib.rs files

    bradleypmartin committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    3f40a9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    009421c View commit details
    Browse the repository at this point in the history

Commits on May 25, 2020

  1. Configuration menu
    Copy the full SHA
    fa3395d View commit details
    Browse the repository at this point in the history
  2. add recursive mode and clean up whitelist where we can

    bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    ddd5c6e View commit details
    Browse the repository at this point in the history
  3. move recursive setting to top of lib.rs files

    bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    278a4f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f0cce5b View commit details
    Browse the repository at this point in the history
  5. Update diff.rs (rust-lang#4150)

    Nishikoh authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    010c678 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    759aaf7 View commit details
    Browse the repository at this point in the history
  7. update to rustc 656

    ctaggart authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    58c6c79 View commit details
    Browse the repository at this point in the history
  8. Remove disable_all_formatting (rust-lang#4147)

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    ce8493a View commit details
    Browse the repository at this point in the history
  9. Stabilize binop_separator.

    Servo has used this since forever, and it'd be useful to be able to use
    rustfmt stable there so that we can use the same rustfmt version in
    both Firefox and Servo.
    
    Feel free to close this if there's any reason it shouldn't be done.
    
    Closes rust-lang#3368
    emilio authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    445f71e View commit details
    Browse the repository at this point in the history
  10. Preserve and format type aliases in extern blocks

    Previously, non-trivial type aliases in extern blocks were dropped by
    rustfmt because only the type alias name would be passed to a rewritter.
    This commit fixes that by passing all type information (generics,
    bounds, and assignments) to a type alias rewritter, and consolidates
    `rewrite_type_alias` and `rewrite_associated_type` as one function.
    
    Closes rust-lang#4159
    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    5524752 View commit details
    Browse the repository at this point in the history
  11. fixup! Preserve and format type aliases in extern blocks

    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    8d66e73 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    dc5fb24 View commit details
    Browse the repository at this point in the history
  13. Compare code block line indentation with config whitespace (rust-lang…

    …#4166)
    
    Previously the indetation of a line was compared with the configured
    number of spaces per tab, which could cause lines that were formatted
    with hard tabs not to be recognized as indented ("\t".len() < "    ".len()).
    
    Closes rust-lang#4152
    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    e086436 View commit details
    Browse the repository at this point in the history
  14. Exclude code block delimiters when wrapping comments (rust-lang#4165)

    * Exclude code block delimiters when wrapping comments
    
    Closes rust-lang#4158
    
    * fixup! Exclude code block delimiters when wrapping comments
    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    a98b1cd View commit details
    Browse the repository at this point in the history
  15. Create FUNDING.yml

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    6af9fed View commit details
    Browse the repository at this point in the history
  16. feat: support configurability of leading pipe

    calebcartwright authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    04fdc7a View commit details
    Browse the repository at this point in the history
  17. tests: add tests for leading pipe config

    calebcartwright authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    db9962a View commit details
    Browse the repository at this point in the history
  18. docs: add config info for match_arm_leading_pipes

    calebcartwright authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    8ef90d1 View commit details
    Browse the repository at this point in the history
  19. fixup! Preserve and format type aliases in extern blocks

    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    a6509fe View commit details
    Browse the repository at this point in the history
  20. fixup! Preserve and format type aliases in extern blocks

    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    e6d5aea View commit details
    Browse the repository at this point in the history
  21. Properly align comments in unicode lines

    For an end user, the number of characters in a string is most likely
    interpreted as the number of [grapheme cluster](http://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries)s in the string,
    which may be different than either the number of unicode codepoints or
    bytes. Use the number of graphemes to determine list comment alignment
    rather than the byte length of the line.
    
    Closes rust-lang#4151
    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    a5232a2 View commit details
    Browse the repository at this point in the history
  22. Remove legacy-rustfmt.toml (rust-lang#4169)

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    e81d184 View commit details
    Browse the repository at this point in the history
  23. Remove spaces added by comment opener when creating itemized block

    I'm not sure there's a better way to do this without a larger refactor
    of this method.
    
    Closes rust-lang#4104
    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    e7af9c1 View commit details
    Browse the repository at this point in the history
  24. Exclude where kw from comment following fn return type (rust-lang#4175)

    rustfmt tries to preserve the comment between a fn return type and the
    start of the fn body if there are no where clauses following the return
    type. However, even if there are no where clauses present, the "where"
    keyword may be. To elide the "where" keyword in this context, just get
    the comment snippet starting after the where clause span, which always
    includes the "where" keyword if present.
    
    Closes rust-lang#4001
    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    02e740d View commit details
    Browse the repository at this point in the history
  25. Stabilize match_block_trailing_comma. (rust-lang#4145)

    Servo has used this since forever, and it'd be useful to be able to use
    rustfmt stable there so that we can use the same rustfmt version in
    both Firefox and Servo.
    
    Feel free to close this if there's any reason it shouldn't be done.
    
    Closes rust-lang#3380
    emilio authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    2ade088 View commit details
    Browse the repository at this point in the history
  26. Update rustc-ap crates to 659.0.0 (rust-lang#4188)

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    1c06692 View commit details
    Browse the repository at this point in the history
  27. Refactor

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    4343c4f View commit details
    Browse the repository at this point in the history
  28. Rename

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    9a79fca View commit details
    Browse the repository at this point in the history
  29. Remove Session

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    b9c5fe1 View commit details
    Browse the repository at this point in the history
  30. Move formatting-related modules under formatting

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    474ca53 View commit details
    Browse the repository at this point in the history
  31. Cargo fmt

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    5f5c9d1 View commit details
    Browse the repository at this point in the history
  32. Move some files

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    b05a902 View commit details
    Browse the repository at this point in the history
  33. Add format_inputs

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    d261e9c View commit details
    Browse the repository at this point in the history
  34. Fix git-rustfmt

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    dd2e0ca View commit details
    Browse the repository at this point in the history
  35. Fix test

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    975c19d View commit details
    Browse the repository at this point in the history
  36. Fix ignored test

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    100068d View commit details
    Browse the repository at this point in the history
  37. Fix test

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    d9f7064 View commit details
    Browse the repository at this point in the history
  38. Audit lib.rs

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    69f6b76 View commit details
    Browse the repository at this point in the history
  39. Cargo fmt

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    b68f06b View commit details
    Browse the repository at this point in the history
  40. Fix merge conflicts

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    991ab17 View commit details
    Browse the repository at this point in the history
  41. Preserve comments in empty statements (rust-lang#4180)

    * Preserve comments in empty statements
    
    Closes rust-lang#4018
    
    * fixup! Preserve comments in empty statements
    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    fffc7ff View commit details
    Browse the repository at this point in the history
  42. Add test cases for fixed issues (rust-lang#4189)

    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    037c064 View commit details
    Browse the repository at this point in the history
  43. Do not break empty blocks in match arm patterns (rust-lang#4187)

    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    25d5f9f View commit details
    Browse the repository at this point in the history
  44. Add cargo-make support (rust-lang#4191)

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    0e3d5f0 View commit details
    Browse the repository at this point in the history
  45. Parse comma-separated branches in macro definitions (rust-lang#4173)

    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    b56a370 View commit details
    Browse the repository at this point in the history
  46. Fix module resolution in inner modules with paths (rust-lang#4194)

    mahkoh authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    24fa639 View commit details
    Browse the repository at this point in the history
  47. Update Contributing.md (rust-lang#4195)

    mahkoh authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    5b62710 View commit details
    Browse the repository at this point in the history
  48. Align string type for edition (rust-lang#4197)

    BO41 authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    20a52b7 View commit details
    Browse the repository at this point in the history
  49. Merge configs from parent directories (rust-lang#4179)

    ayazhafiz authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    b042b37 View commit details
    Browse the repository at this point in the history
  50. Stabilize ignore config option (rust-lang#4139)

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    cbf44c8 View commit details
    Browse the repository at this point in the history
  51. Upload annotate-snippets to 0.8 (rust-lang#4161)

    zzau13 authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    4861ef4 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    35121ea View commit details
    Browse the repository at this point in the history
  53. Fix CFG_RELEASE value (rust-lang#4202)

    sagiegurari authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    5936675 View commit details
    Browse the repository at this point in the history
  54. rust-lang#4099: trailing_comma + struct_field_align_threshold -> remo…

    …ving a struct's commas (rust-lang#4201)
    theo-lw authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    0a45e91 View commit details
    Browse the repository at this point in the history
  55. Fix makefile (rust-lang#4203)

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    b272c77 View commit details
    Browse the repository at this point in the history
  56. Cargo update

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    256c024 View commit details
    Browse the repository at this point in the history
  57. Release v2.0.0-rc.2

    topecongiro authored and bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    77a7f95 View commit details
    Browse the repository at this point in the history
  58. Merge branch 'bradleypmartin-test-recursive-mode' of https://github.c…

    …om/bradleypmartin/rustfmt into bradleypmartin-test-recursive-mode
    bradleypmartin committed May 25, 2020
    Configuration menu
    Copy the full SHA
    0b8341f View commit details
    Browse the repository at this point in the history