1. 11 11月, 2018 1 次提交
  2. 05 11月, 2018 9 次提交
    • B
      Auto merge of #55515 - QuietMisdreavus:rustdoc-config, r=GuillaumeGomez · 6cfc6033
      bors 提交于
      rustdoc: refactor: centralize all command-line argument parsing
      
      This is something i've wanted to do for a while, since we keep having to add new arguments to places like `rust_input` or `core::run_core` whenever we add a new CLI flag or the like. Those functions have inflated up to 11-19, and in some cases hiding away the locations where some CLI flags were being parsed, obscuring their use. Now, we have a central place where all command-line configuration occurs, including argument validation.
      
      One note about the design: i grouped together all the arguments that `html::render::run` needed, so that i could pass them on from compilation in one lump instead of trying to thread through individual items or clone the entire blob ahead of time.
      
      One other thing this adds is that rustdoc also now recognizes all the `-Z` options that rustc does, since we were manually grabbing a few previously. Now we parse a full `DebuggingOptions` struct and hand it directly to rustc when scraping docs.
      6cfc6033
    • B
      Auto merge of #55681 - matthiaskrgr:clippy, r=oli-obk · 56ac2c4f
      bors 提交于
      submodules: update clippy from 71ec4ff6 to d8b42690
      
      Fixes clippy toolstate.
      
      Changes:
      
      ````
      rustup https://github.com/rust-lang/rust/pull/55665 (pass contexts by reference)
      Fix typo
      Improve clippy_dev help text
      RIIR update lints: Generate lint group registrations
      Test clippy_dev on CI and fix test
      RIIR update lints: Generate modules section
      ````
      56ac2c4f
    • B
      Auto merge of #55593 - nikic:remove-llvm-4-checks, r=rkruppe · 0117b42f
      bors 提交于
      Remove checks for LLVM < 4.0
      
      While we still have to support LLVM 4.0 for Emscripten, we can drop checks for LLVM >= 4.0 and < 4.0.
      0117b42f
    • B
      Auto merge of #55569 - durka:must-use-external-macro, r=alexcrichton · 248745ab
      bors 提交于
      enforce unused-must-use lint in macros
      
      Fixes #55516 by turning on the UNUSED_MUST_USE lint within macros.
      248745ab
    • M
      submodules: update clippy from 71ec4ff6 to d8b42690 · 1351b942
      Matthias Krüger 提交于
      Fixes clippy toolstate.
      
      Changes:
      
      ````
      rustup https://github.com/rust-lang/rust/pull/55665 (pass contexts by reference)
      Fix typo
      Improve clippy_dev help text
      RIIR update lints: Generate lint group registrations
      Test clippy_dev on CI and fix test
      RIIR update lints: Generate modules section
      ````
      1351b942
    • Q
      fix formatting · 560a01c7
      QuietMisdreavus 提交于
      560a01c7
    • Q
      add Debug impls for the Options structs · d0c93857
      QuietMisdreavus 提交于
      d0c93857
    • B
      Auto merge of #55665 - eddyb:by-ref-layout-of, r=oli-obk · e6c5cf92
      bors 提交于
      rustc_target: pass contexts by reference, not value.
      
      `LayoutOf` now takes `&self` instead of `self`, and so does every method generic over a context that implements `LayoutOf` and/or other traits, like `HasDataLayout`, `HasTyCtxt`, etc.
      
      Originally using by-value `Copy` types was relevant because `TyCtxt` was one of those types, but now `TyCtxt::layout_of` is separate from `LayoutOf`, and `TyCtxt` is not an often used layout context.
      
      Passing these context by reference is a lot nicer for miri, which has `self: &mut EvalContext`, and needed `f(&self)` (that is, creating `&&mut EvalContext` references) for layout purposes.
      Now, the `&mut EvalContext` can be passed to a function expecting `&C`, directly.
      
      This should help with #54012 / #55627 (to not need `where &'a T::Cx: LayoutOf` bounds).
      
      r? @nikomatsakis or @oli-obk or @nagisa cc @sunfishcode
      e6c5cf92
    • E
      d00d42d0
  3. 04 11月, 2018 11 次提交
    • B
      Auto merge of #55393 - oli-obk:immediate_immediately, r=RalfJung · ca4fa6f5
      bors 提交于
      Rename `Value` to `Immediate` for miri
      
      r? @RalfJung
      ca4fa6f5
    • B
      Auto merge of #55349 - bjorn3:rustc_mir_collect_and_partition_mono_items, r=oli-obk · ac708826
      bors 提交于
      Move collect_and_partition_mono_items to rustc_mir
      
      Most of the logic of it is inside rustc_mir anyway.
      
      Also removes the single function crate rustc_metadata_utils. Based on #55225
      ac708826
    • B
      Auto merge of #55432 - zackmdavis:single_life, r=nikomatsakis · 86b88e6a
      bors 提交于
      single life
      
       * structured ~~autofixable~~ (well, pending #53934 and rust-lang-nursery/rustfix#141) suggestions for the single-use-lifetimes lint in the case of function and method reference args
       * don't consider the anonymous lifetime `'_` as "single-use" (it's intended for exactly this sort of thing)
      
      ![single_life](https://user-images.githubusercontent.com/1076988/47613227-3b2b6400-da48-11e8-8efd-cb975ddf537d.png)
      
      r? @nikomatsakis
      86b88e6a
    • B
      Auto merge of #55455 - estebank:expected-descr, r=michaelwoerister · 794fc062
      bors 提交于
      Use token description in "expected/found" parse messages
      
      Fix #54309.
      794fc062
    • B
      Auto merge of #54861 - rep-nop:find_main_in_doctest, r=estebank · 6d69fe7a
      bors 提交于
      rustdoc: Replaces fn main search and extern crate search with proper parsing during doctests.
      
      Fixes #21299.
      Fixes #33731.
      
      Let me know if there's any additional changes you'd like made!
      6d69fe7a
    • B
      Auto merge of #55662 - matthiaskrgr:clippy_update, r=oli-obk · 4c5c05d7
      bors 提交于
      submodules: update clippy from a20599ab to 71ec4ff6
      
      Should fix clippy toolstat.
      
      Changes:
      
      ````
      rustup https://github.com/rust-lang/rust/pull/55330/
      Update stderr
      Rename test files
      Also lint cfg_attr(.., rustfmt::skip)
      Add tests from rustfmt::skip test file
      Run update_lints.py script
      Add test for non-crate-level inner attributes
      Differ between inner and outer attributes
      Add tests
      Add cfg_attr(rustfmt) lint
      Addressed comments.
      Fix dogfood error.
      Added lints `into_iter_on_ref` and `into_iter_on_array`. Fix #1565.
      Allow single_match_else
      Update stderr
      Add copyright statement©
      Fix typos
      Fix dogfood error
      Fix typo and indentation
      run update_lints script
      Add tests for unknwon_clippy_lints lint
      Add new lint: unknwon_clippy_lintsg
      clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase.
      Fix a false-positive of needless_borrow
      UI test cleanup: Extract match_overlapping_arm tests
      UI test cleanup: Extract expect_fun_call tests
      Add missing code of conduct file
      Use slice patterns instead of padding
      Fix dogfood and pedantic lints
      ci: when installing rust-toolchain-installer-master, install it in debug mode to save some time in ci.
      RIIR update lints: Generate deprecated lints
      Replace big if/else expression with match
      ````
      4c5c05d7
    • B
      Auto merge of #55661 - kennytm:fix-exclude, r=alexcrichton · 04fdb44f
      bors 提交于
      Fixed the bug in bootstrap where --exclude was ignored for run-pass test
      
      This should fix the 3 hour timeout on AppVeyor which happened a lot recently.
      
      Additionally, further rebalanced the AppVeyor subsets by moving "ui" and "linkchecker" into Set 2.
      04fdb44f
    • M
      submodules: update clippy from a20599ab to 71ec4ff6 · 8a0be2c5
      Matthias Krüger 提交于
      Should fix clippy toolstat.
      
      Changes:
      
      ````
      rustup https://github.com/rust-lang/rust/pull/55330/
      Update stderr
      Rename test files
      Also lint cfg_attr(.., rustfmt::skip)
      Add tests from rustfmt::skip test file
      Run update_lints.py script
      Add test for non-crate-level inner attributes
      Differ between inner and outer attributes
      Add tests
      Add cfg_attr(rustfmt) lint
      Addressed comments.
      Fix dogfood error.
      Added lints `into_iter_on_ref` and `into_iter_on_array`. Fix #1565.
      Allow single_match_else
      Update stderr
      Add copyright statement©
      Fix typos
      Fix dogfood error
      Fix typo and indentation
      run update_lints script
      Add tests for unknwon_clippy_lints lint
      Add new lint: unknwon_clippy_lintsg
      clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase.
      Fix a false-positive of needless_borrow
      UI test cleanup: Extract match_overlapping_arm tests
      UI test cleanup: Extract expect_fun_call tests
      Add missing code of conduct file
      Use slice patterns instead of padding
      Fix dogfood and pedantic lints
      ci: when installing rust-toolchain-installer-master, install it in debug mode to save some time in ci.
      RIIR update lints: Generate deprecated lints
      Replace big if/else expression with match
      ````
      8a0be2c5
    • K
      Move a few more tests into the appveyor-subset-2. · 2bde4e7c
      kennytm 提交于
      This should allow the timings be more balanced.
      2bde4e7c
    • K
      Ensure --exclude is checked against PathSet::Suite · a2573321
      kennytm 提交于
      Fix the recent spurious 3 hour timeouts.
      a2573321
    • B
      Auto merge of #55101 - alexreg:trait-aliases, r=nikomatsakis · a3f0f510
      bors 提交于
      Implement trait aliases (RFC 1733)
      
      Extends groundwork done in https://github.com/rust-lang/rust/pull/45047, and fully implements https://github.com/rust-lang/rfcs/pull/1733.
      
      CC @durka @nikomatsakis
      a3f0f510
  4. 03 11月, 2018 19 次提交