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 4 pull requests #63940

Merged
merged 16 commits into from
Aug 27, 2019
Merged

Rollup of 4 pull requests #63940

merged 16 commits into from
Aug 27, 2019

Commits on Jul 11, 2019

  1. libtest: add --show-output option

    this new flag enables printing the captured stdout of successful tests
    utilizing the already existing display_output test runner option
    Paul Emmerich committed Jul 11, 2019
    Configuration menu
    Copy the full SHA
    1add949 View commit details
    Browse the repository at this point in the history
  2. libtest: support display_output in JSON formatter

    Paul Emmerich committed Jul 11, 2019
    Configuration menu
    Copy the full SHA
    409a41d View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2019

  1. Merge pull request rust-lang#1 from rust-lang/master

    Pull from newest repo
    Phosphorus15 committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    92f08b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c456934 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    64e3a10 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2019

  1. Configuration menu
    Copy the full SHA
    535efa4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e33d870 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2019

  1. Configuration menu
    Copy the full SHA
    fa7ea10 View commit details
    Browse the repository at this point in the history
  2. proc_macro: Turn quote into a regular built-in macro

    Previously in was implemented using a special hack in the metadata loader
    petrochenkov committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    32e5acb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52c62ea View commit details
    Browse the repository at this point in the history
  4. metadata: Eliminate FullProcMacro

    Fix caching of loaded proc macros
    petrochenkov committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    2065ee9 View commit details
    Browse the repository at this point in the history
  5. proc_macro: Update Span::def_site to use the proc macro definition …

    …location
    
    Which is no longer dummy and is available from metadata now.
    petrochenkov committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    c476b55 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2019

  1. Rollup merge of rust-lang#62600 - emmericp:libtest-add-show-output, r…

    …=gnzlbg
    
    libtest: add --show-output flag to print stdout of successful tests
    
    This pull request adds a new flag `--show-output` for tests to show the output of successful tests. For most formatters this was already supported just not exposed via the CLI (apparently only used by `librustdoc`). I've also added support for this option in the JSON formatter.
    
    This kind of fixes rust-lang#54669 which wants `--format json` to work with `--nocapture`, which is... well, impossible. What this issue really calls for is `--show-output` as implemented here.
    Centril committed Aug 27, 2019
    Configuration menu
    Copy the full SHA
    6d20265 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#63698 - Phosphorus15:master, r=nagisa

    Fixed floating point issue with asinh function
    
    This should fixes rust-lang#63271 , in which `asinh(-0.0)` returns `0.0` instead of `-0.0`.
    according to @nagisa
    >
    >
    > IEEE-754 (2008), section 9.2.1:
    >
    > > For the functions expm1, exp2m1, exp10m1, logp1, log2p1, log10p1, sin, tan, sinPi, atanPi, asin, atan, sinh, tanh, asinh, and atanh, f(+0) is +0 and f(−0) is −0 with no exception.
    >
    > and
    >
    > > sinh(±∞) and asinh(±∞) are ±∞ with no exception.
    
    After ensuring that the function `asinh` is the only function affected (functions like `sin`, `sinh` are all based on `cmath` library or `llvm` intrinsics), and that `atanh` always gives the correct result. The only function to modify is `asinh`.
    Centril committed Aug 27, 2019
    Configuration menu
    Copy the full SHA
    68597c7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#63761 - petrochenkov:procattrs, r=eddyb

    Propagate spans and attributes from proc macro definitions
    
    Thanks to rust-lang#63269 we now have spans and attributes from proc macro definitions available in metadata.
    
    However, that PR didn't actually put them into use! This PR finishes that work.
    
    Attributes `rustc_macro_transparency`, `allow_internal_unstable`, `allow_internal_unsafe`, `local_inner_macros`, `rustc_builtin_macro`, `stable`, `unstable`, `rustc_deprecated`, `deprecated` now have effect when applied to proc macro definition functions.
    From those attributes only `deprecated` is both stable and supposed to be used in new code.
    (`#![staged_api]` still cannot be used in proc macro crates for unrelated reasons though.)
    
    `Span::def_site` from the proc macro API now returns the correct location of the proc macro definition.
    
    Also, I made a mistake in rust-lang#63269 (comment), loaded proc macros didn't actually use the resolver cache.
    This PR fixes the caching issue, now proc macros go through the `Resolver::macro_map` cache as well.
    
    (Also, the first commit turns `proc_macro::quote` into a regular built-in macro to reduce the number of places where `SyntaxExtension`s need to be manually created.)
    Centril committed Aug 27, 2019
    Configuration menu
    Copy the full SHA
    0da7098 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#63917 - lzutao:langitem_gen_63912, r=centri…

    …l,cramert
    
    Error when generator trait is not found
    
    Closes rust-lang#63912
    Centril committed Aug 27, 2019
    Configuration menu
    Copy the full SHA
    23116ba View commit details
    Browse the repository at this point in the history