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

Rollup of 6 pull requests #67764

Merged
merged 35 commits into from
Dec 31, 2019
Merged

Rollup of 6 pull requests #67764

merged 35 commits into from
Dec 31, 2019

Commits on Dec 30, 2019

  1. cleanup check_pat

    Centril committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    73db83a View commit details
    Browse the repository at this point in the history
  2. MatchExpressionArmPattern: Use more generic wording.

    The existing wording was inappropriate for e.g.
    `if let Ok(_) = expr { .. }`. The diagnostic would
    leak the fact that we desugar to a `match`.
    Centril committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    ab050d6 View commit details
    Browse the repository at this point in the history
  3. Show scrutinee expr type for struct fields.

    TODO: The type is wrong and will be fixed in later commits.
    Centril committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    960acb0 View commit details
    Browse the repository at this point in the history
  4. MatchExpressionArmPattern -> Pattern

    Current name is too specific for incoming changes.
    Centril committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    e952377 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6137ad4 View commit details
    Browse the repository at this point in the history
  6. Pass the span of <init> in let <pat> = <init>;

    when type checking `<pat>`.
    Centril committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    f35840f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d7e2f3a View commit details
    Browse the repository at this point in the history
  8. check_fn: simplify

    Centril committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    f2c6a19 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f8d2cce View commit details
    Browse the repository at this point in the history
  10. discriminant -> scrutinee

    Centril committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    63dc0e4 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2019

  1. Configuration menu
    Copy the full SHA
    7f9cc88 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f84d9e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2091062 View commit details
    Browse the repository at this point in the history
  4. de-fatalize some errors

    Centril committed Dec 31, 2019
    Configuration menu
    Copy the full SHA
    b6fc87c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5a64ba6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    85dbbaa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    46ec6be View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    13ca924 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    51fb599 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6fba125 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2e812c1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4ae9c1c View commit details
    Browse the repository at this point in the history
  13. parser: bug -> span_bug

    Centril committed Dec 31, 2019
    Configuration menu
    Copy the full SHA
    2e78061 View commit details
    Browse the repository at this point in the history
  14. Use function attribute "frame-pointer" instead of "no-frame-pointer-e…

    …lim"
    
    LLVM 8 (D56351) introduced "frame-pointer". In LLVM 10 (D71863),
    "no-frame-pointer-elim"/"no-frame-pointer-elim-non-leaf" will be
    ignored.
    MaskRay committed Dec 31, 2019
    Configuration menu
    Copy the full SHA
    b40dc30 View commit details
    Browse the repository at this point in the history
  15. Constify Result

    lukaslueg committed Dec 31, 2019
    Configuration menu
    Copy the full SHA
    954c432 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ce8dbf0 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7b6ef2b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    52179c5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    70eca99 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#67574 - Centril:librustc_lowering, r=Mark-S…

    …imulacrum
    
    Extract `rustc_ast_lowering` crate from `rustc`
    
    Working towards rust-lang#65031.
    
    This PR moves `src/librustc/hir/lowering{/, .rs}` to its own crate (`librustc_ast_lowering`) which is very self-contained (only `fn lower_crate` and `trait Resolver` are exposed).
    
    r? @Mark-Simulacrum
    Centril authored Dec 31, 2019
    Configuration menu
    Copy the full SHA
    3cf2bc0 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#67685 - lukaslueg:const_result, r=oli-obk

    Constify Result
    
    r? @oli-obk
    
    This is just the `Result`-part of rust-lang#67494 which I'll resubmit once rust-lang#66254 has landed.
    Centril authored Dec 31, 2019
    Configuration menu
    Copy the full SHA
    89fbed9 View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#67702 - crlf0710:normalize_ident2, r=petroc…

    …henkov
    
    Add symbol normalization for proc_macro_server.
    
    Follow up for rust-lang#66670, finishing the first bullet point in rust-lang#55467.
    
    r? @petrochenkov
    Centril authored Dec 31, 2019
    Configuration menu
    Copy the full SHA
    bc5963d View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#67730 - Centril:typeck-pat-cleanup, r=estebank

    Cleanup pattern type checking, fix diagnostics bugs (+ improvements)
    
    r? @estebank
    Centril authored Dec 31, 2019
    Configuration menu
    Copy the full SHA
    50fb848 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#67744 - Centril:reduce-diversity, r=petroch…

    …enkov
    
    parser: reduce diversity in error handling mechanisms
    
    Instead of having e.g. `span_err`, `fatal`, etc., we prefer to move towards uniformly using `struct_span_err` thus making it harder to emit fatal and/or unstructured diagnostics.
    
    This PR also de-fatalizes some diagnostics.
    
    r? @estebank
    Centril authored Dec 31, 2019
    Configuration menu
    Copy the full SHA
    3cca3c6 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#67748 - MaskRay:frame-pointer, r=rkruppe

    Use function attribute "frame-pointer" instead of "no-frame-pointer-elim"
    
    LLVM 8 ([D56351](http://reviews.llvm.org/D56351)) introduced "frame-pointer". In LLVM 10 (D71863),
    "no-frame-pointer-elim"/"no-frame-pointer-elim-non-leaf" will be
    ignored.
    
    -----
    
    In the LLVM monorepo, run `git show origin/release/8.x:llvm/lib/CodeGen/TargetOptionsImpl.cpp` to see that `"frame-pointer"` is available since LLVM 8.
    Centril authored Dec 31, 2019
    Configuration menu
    Copy the full SHA
    40579d1 View commit details
    Browse the repository at this point in the history