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 8 pull requests #93245

Merged
merged 36 commits into from
Jan 24, 2022
Merged

Rollup of 8 pull requests #93245

merged 36 commits into from
Jan 24, 2022

Commits on Jan 4, 2022

  1. Configuration menu
    Copy the full SHA
    0e24ad5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cc699e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    da33da1 View commit details
    Browse the repository at this point in the history
  4. Simplify panicking mechanism of thread::scope.

    It now panic!()s on its own, rather than resume_unwind'ing the panic
    payload from the thread. Using resume_unwind skips the panic_handler,
    meaning that the main thread would never have a panic handler run, which
    can get confusing.
    m-ou-se committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    f521779 View commit details
    Browse the repository at this point in the history
  5. Formatting.

    m-ou-se committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    4300bea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c5cb2de View commit details
    Browse the repository at this point in the history
  7. Use > rather than == for overflow check in scoped threads.

    Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
    m-ou-se and programmerjake authored Jan 4, 2022
    Configuration menu
    Copy the full SHA
    2c8cc70 View commit details
    Browse the repository at this point in the history
  8. Fix typo in documentation.

    m-ou-se committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    09e6665 View commit details
    Browse the repository at this point in the history
  9. Fix typo in is_running() docs.

    Co-authored-by: Mattias Buelens <649348+MattiasBuelens@users.noreply.github.com>
    m-ou-se and MattiasBuelens committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    c429ade View commit details
    Browse the repository at this point in the history
  10. Fix typo in Scope::spawn docs.

    Co-authored-by: deltragon <m@dafert.at>
    m-ou-se and deltragon authored Jan 4, 2022
    Configuration menu
    Copy the full SHA
    5b5746f View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2022

  1. Configuration menu
    Copy the full SHA
    a9efbaf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5bd5781 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa9c088 View commit details
    Browse the repository at this point in the history
  4. Mention *scoped* thread in panic message.

    Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
    m-ou-se and Amanieu authored Jan 5, 2022
    Configuration menu
    Copy the full SHA
    4cb7370 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2022

  1. Configuration menu
    Copy the full SHA
    bc8cef1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e572c5a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    12cc7d9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    465c405 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cbb0fff View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2022

  1. Configuration menu
    Copy the full SHA
    4ff7e6e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19809ed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf382de View commit details
    Browse the repository at this point in the history
  4. rustc_lint: Remove some redundant fields from EarlyContext

    Use consistent function parameter order for early context construction and early linting
    Rename some functions to make it clear that they do not necessarily work on the whole crate
    petrochenkov committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    452aa81 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    51b2338 View commit details
    Browse the repository at this point in the history
  6. Update clippy

    petrochenkov committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    9c70b6d View commit details
    Browse the repository at this point in the history
  7. rustc_lint: Stop creating a fake ast::Crate for running early lints

    Add a trait generalizing over the crate root and freshly loaded modules instead
    This also makes node IDs used for pre-expansion linting more precise
    petrochenkov committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    05cd755 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    67cccaf View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4a74ace View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#91526 - petrochenkov:earlint, r=cjgillot

    rustc_lint: Some early linting refactorings
    
    The first one removes and renames some fields and methods from `EarlyContext`.
    
    The second one uses the set of registered tools (for tool attributes and tool lints) in a more centralized way.
    
    The third one removes creation of a fake `ast::Crate` from `fn pre_expansion_lint`.
    Pre-expansion linting is done with per-module granularity on freshly loaded modules, and it previously synthesized an `ast::Crate` to visit non-root modules, now they are visited as modules.
    The node ID used for pre-expansion linting is also made more precise (the loaded module ID is used).
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    89baf0f View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#92555 - m-ou-se:scoped-threads, r=Amanieu

    Implement RFC 3151: Scoped threads.
    
    This implements rust-lang/rfcs#3151
    
    r? `@Amanieu`
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    bb260e8 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#93213 - c410-f3r:let-chains-feature, r=matt…

    …hewjasper
    
    Fix `let_chains` and `if_let_guard` feature flags
    
    Fixes rust-lang#93150
    
    cc rust-lang#53667
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    0f2ff4b View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#93219 - cr1901:msp430-asm-squashed, r=Amanieu

    Add preliminary support for inline assembly for msp430.
    
    The `llvm_asm` macro was removed recently, and the MSP430 backend relies on inline assembly to build useful embedded apps. I conveniently "found" time to implement basic support for the new inline `asm` macro syntax with the help of `@Amanieu` :D.
    
    In addition to tests in the compiler, I have tested this locally against deployed MSP430 code and have not found any noticeable differences in firmware operation or `objdump` disassemblies between the old `llvm_asm` and the new `asm` syntax.
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    552b564 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#93226 - compiler-errors:issue-93141, r=jack…

    …h726
    
    Normalize field access types during borrowck
    
    I think a normalize was just left out here, since we normalize analogously throughout this file.
    
    Fixes rust-lang#93141
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    5adef28 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#93227 - compiler-errors:gat-hrtb-wfcheck, r…

    …=jackh726
    
    Liberate late bound regions when collecting GAT substs in wfcheck
    
    The issue here is that the [`GATSubstCollector`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_typeck/src/check/wfcheck.rs#L604) does not currently do anything wrt `Binder`s, so the GAT substs it copies out have escaping late bound regions when it walks through types like `for<'x> fn() -> Self::Gat<'x>`.
    
    I made that visitor call `liberate_late_bound_regions`, not sure if that's the right thing here or we need to do something else to replace these bound vars with placeholders. I'm not familiar with other code doing anything similar.. But the issue is indeed no longer ICEing.
    
    Fixes rust-lang#92954
    
    r? `@jackh726`
    since you last touched this code, feel free to reassign
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    8810af8 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#93229 - mark-i-m:noquiet, r=eddyb

    Remove DiagnosticBuilder.quiet
    
    r? `@eddyb`
    
    cc rust-lang#69426 `@GuillaumeGomez` `@Manishearth`
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    a1645e5 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#93234 - mati865:mir-transform-use-itertools…

    …, r=jackh726
    
    rustc_mir_itertools: Avoid needless `collect` with itertools
    
    I don't think this should have measurable perf impact (at least not on perf.rlo benchmarks), it's mostly for readability.
    matthiaskrgr authored Jan 23, 2022
    Configuration menu
    Copy the full SHA
    eea833f View commit details
    Browse the repository at this point in the history