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 13 pull requests #77082

Closed
wants to merge 54 commits into from

Commits on Sep 19, 2020

  1. Configuration menu
    Copy the full SHA
    d4039c5 View commit details
    Browse the repository at this point in the history
  2. words

    lcnr committed Sep 19, 2020
    Configuration menu
    Copy the full SHA
    30cbc97 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. fix typo in docs and comments

    yuk1ty committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    16047d4 View commit details
    Browse the repository at this point in the history
  2. Record tcx.def_span instead of item.span in crate metadata

    This was missed in PR rust-lang#75465. As a result, a few places have been using
    the full body span of functions, instead of just the header span.
    Aaron1011 committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    e734733 View commit details
    Browse the repository at this point in the history
  3. bless tests

    lcnr committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    7a02ebd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a493ce View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    37463d4 View commit details
    Browse the repository at this point in the history
  6. Add basic test

    nathanwhit committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    4d8a9f1 View commit details
    Browse the repository at this point in the history
  7. Address review comments

    nathanwhit committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    1e1c9c5 View commit details
    Browse the repository at this point in the history
  8. Update doctest

    nathanwhit committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    80d41c9 View commit details
    Browse the repository at this point in the history
  9. Tweak diagnostic

    nathanwhit committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    d2a2429 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    dc2cbb3 View commit details
    Browse the repository at this point in the history
  11. Address review comments

    nathanwhit committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    79e61a0 View commit details
    Browse the repository at this point in the history
  12. review

    lcnr committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    2f893e4 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2020

  1. Update addr.rs

    I little clarification
    imbolc authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    2a40b63 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a6bc77 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    731113b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0082d20 View commit details
    Browse the repository at this point in the history
  5. Add #[track_caller] to more panicking Cell functions

    Continuation of rust-lang#74526
    
    Adds the #[track_caller] attribute to almost all panicking Cell
    functions. The ones that borrow two Cells in their function
    body are spared, because the panic location helps pinpoint
    which of the two borrows failed. You'd need to have
    full debuginfo and backtraces enabled together with column
    info in order to be able to discern the cases.
    Column info is only available on non-Windows platforms.
    est31 committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    05c3a2b View commit details
    Browse the repository at this point in the history
  6. Update library/std/src/net/addr.rs

    Co-authored-by: Ivan Tham <[email protected]>
    imbolc and pickfire authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    5ab714f View commit details
    Browse the repository at this point in the history
  7. Update library/std/src/net/addr.rs

    Co-authored-by: Ivan Tham <[email protected]>
    imbolc and pickfire authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    4622ceb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    37b72bc View commit details
    Browse the repository at this point in the history
  9. Remove lint from clippy

    nathanwhit committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    9f5c3e9 View commit details
    Browse the repository at this point in the history
  10. Fix doctest

    nathanwhit committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    4cc16db View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3dd28c7 View commit details
    Browse the repository at this point in the history
  12. Update library functions with stability attributes

    This may not be strictly minimal, but all unstable functions also need a
    `rustc_const_unstable` attribute.
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    110e59e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a173c5c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7fb9587 View commit details
    Browse the repository at this point in the history
  15. Allow errors to abort const checking when emitted

    This is a hack for parity with `qualify_min_const_fn`, which only
    emitted a single error.
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    bfc10a8 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5ee5429 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    3569bb6 View commit details
    Browse the repository at this point in the history
  18. Bless tests

    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    ef6d427 View commit details
    Browse the repository at this point in the history
  19. Bless compile-fail

    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    9be3d10 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    d60e204 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    08e3822 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    6044836 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    186d148 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4b6a482 View commit details
    Browse the repository at this point in the history
  25. Bless mir-opt tests

    jonas-schievink committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    928a29f View commit details
    Browse the repository at this point in the history
  26. Don't use an if guard to check equality with a constant

    Match on it directly instead
    LingMan authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    c078905 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    d76b807 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#75671 - nathanwhit:cstring-temp-lint, r=oli…

    …-obk
    
    Uplift `temporary-cstring-as-ptr` lint from `clippy` into rustc
    
    The general consensus seems to be that this lint covers a common enough mistake to warrant inclusion in rustc.
    The diagnostic message might need some tweaking, as I'm not sure the use of second-person perspective matches the rest of rustc, but I'd like to hear others' thoughts on that.
    
    (cc rust-lang#53224).
    
    r? @oli-obk
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    1871d90 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#76850 - ecstatic-morse:const-checking-refac…

    …tor, r=oli-obk
    
    Remove `qualify_min_const_fn`
    
    ~~Blocked on rust-lang#76807 (the first six commits).~~
    
    With this PR, all checks in `qualify_min_const_fn` are replicated in `check_consts`, and the former is no longer invoked. My goal was to have as few changes to test output as possible, since making sweeping changes to the code *while* doing big batches of diagnostics updates turned out to be a headache. To this end, there's a few `HACK`s in `check_consts` to achieve parity with `qualify_min_const_fn`.
    
    The new system that replaces `is_min_const_fn` is referred to as "const-stability"  My end goal for the const-stability rules is this:
    * Const-stability is only applicable to functions defined in `staged_api` crates.
    * All functions not marked `rustc_const_unstable` are considered "const-stable".
        - NB. This is currently not implemented. `#[unstable]` functions are also const-unstable. This causes problems when searching for feature gates.
        - All "const-unstable" functions have an associated feature gate
    * const-stable functions can only call other const-stable functions
         - `allow_internal_unstable` can be used to circumvent this.
    * All const-stable functions are subject to some additional checks (the ones that were unique to `qualify_min_const_fn`)
    
    The plan is to remove each `HACK` individually in subsequent PRs. That way, changes to error message output can be reviewed in isolation.
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    00569c3 View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#76898 - Aaron1011:fix/item-def-span, r=oli-obk

    Record `tcx.def_span` instead of `item.span` in crate metadata
    
    This was missed in PR rust-lang#75465. As a result, a few places have been using
    the full body span of functions, instead of just the header span.
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    176af83 View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#76939 - lcnr:const-evaluatable-cont, r=oli-obk

    emit errors during AbstractConst building
    
    There changes are currently still untested, so I don't expect this to pass CI 😆
    
    It seems to me like this is the direction we want to go in, though we didn't have too much of a discussion about this.
    
    r? @oli-obk
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    dc47b2c View commit details
    Browse the repository at this point in the history
  32. Rollup merge of rust-lang#76994 - yuk1ty:fix-small-typo, r=estebank

    fix small typo in docs and comments
    
    Fixed `the the` to `the`, as far as I found.
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    f951295 View commit details
    Browse the repository at this point in the history
  33. Rollup merge of rust-lang#77042 - imbolc:patch-2, r=kennytm

    Improve documentation for ToSocketAddrs
    
    I little clarification
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    cff8489 View commit details
    Browse the repository at this point in the history
  34. Rollup merge of rust-lang#77044 - pickfire:patch-4, r=jyn514

    Liballoc bench vec use mem take not replace
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    a41b5cc View commit details
    Browse the repository at this point in the history
  35. Rollup merge of rust-lang#77047 - RalfJung:miri-dealloc, r=oli-obk

    Miri: more informative deallocation error messages
    
    Make sure we show the affected AllocId.
    
    r? @oli-obk
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    89e73d5 View commit details
    Browse the repository at this point in the history
  36. Rollup merge of rust-lang#77050 - follower:patch-1, r=oli-obk

    Typo fix: "satsify" -> "satisfy"
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    51ba922 View commit details
    Browse the repository at this point in the history
  37. Rollup merge of rust-lang#77055 - est31:more_track_caller, r=Mark-Sim…

    …ulacrum
    
    Add #[track_caller] to more panicking Cell functions
    
    Continuation of rust-lang#74526
    
    Adds the #[track_caller] attribute to almost all panicking Cell
    functions. The ones that borrow two Cells in their function
    body are spared, because the panic location helps pinpoint
    which of the two borrows failed. You'd need to have
    full debuginfo and backtraces enabled together with column
    info in order to be able to discern the cases.
    Column info in debuginfo is only available on non-Windows platforms.
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    1d603db View commit details
    Browse the repository at this point in the history
  38. Rollup merge of rust-lang#77066 - jonas-schievink:dest-prop-borrow, r…

    …=oli-obk
    
    Fix dest prop miscompilation around references
    
    Closes rust-lang#77002
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    0b141e5 View commit details
    Browse the repository at this point in the history
  39. Rollup merge of rust-lang#77078 - LingMan:patch-2, r=jonas-schievink

    Don't use an if guard to check equality with a constant
    
    Match on it directly instead
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    3748c26 View commit details
    Browse the repository at this point in the history
  40. Rollup merge of rust-lang#77081 - LingMan:patch-1, r=jonas-schievink

    Merge two almost identical match arms
    ecstatic-morse authored Sep 22, 2020
    Configuration menu
    Copy the full SHA
    f7c06ea View commit details
    Browse the repository at this point in the history