1. 09 7月, 2020 4 次提交
  2. 08 7月, 2020 4 次提交
    • E
      Fix x.py test for librustc crates. · 26353eae
      Eric Huss 提交于
      26353eae
    • B
      Auto merge of #74124 - ehuss:fix-doc-dry-run-up-to-date, r=Mark-Simulacrum · 1d919c93
      bors 提交于
      Fix occasional bootstrap panic in docs.
      
      I am occasionally running into this panic when running `x.py`:
      
      > thread 'main' panicked at 'source "/Users/eric/Proj/rust/rust/build/x86_64-apple-darwin/md-doc/unstable-book" failed to get metadata: No such file or directory (os error 2)', src/build_helper/lib.rs:173:19
      
      I have not been able to figure out the exact sequence of commands that leads to this error (I tried for quite a while to reproduce it). I think it may involve updating my tree, but I am uncertain.  An artificial way to trigger it is to build the documentation, and then delete the `md-doc` directory manually.
      
      The cause is that bootstrap does a "dry run" before every command, and in this case `up_to_date` panics because the destination exists (`build/x86_64-apple-darwin/doc/unstable-book/index.html `) but the source does not (`build/x86_64-apple-darwin/md-doc/unstable-book`).
      
      I am uncertain if it is important that the last line `builder.run(…)` needs to be called during the dry run. This patch seems to fix the issue, though.
      1d919c93
    • B
      Auto merge of #74006 - euclio:sys-unix-static-mut, r=oli-obk · 8ac1525e
      bors 提交于
      libstd: remove some mutable statics in sys::unix
      
      My understanding is that this achieves the same behavior and performance with safe code.
      8ac1525e
    • O
      56fb7178
  3. 07 7月, 2020 22 次提交
  4. 06 7月, 2020 10 次提交
    • A
      Add rust-analyzer to the build manifest · fdd39a34
      Aleksey Kladov 提交于
      fdd39a34
    • J
      Always resolve type@primitive as a primitive, not a module · e46c1876
      Joshua Nelson 提交于
      Previously, if there were a module in scope with the same name as the
      primitive, that would take precedence. Coupled with
      https://github.com/rust-lang/rust/issues/58699, this made it impossible
      to link to the primitive when that module was in scope.
      
      This approach could be extended so that `struct@foo` would no longer resolve
      to any type, etc. However, it could not be used for glob imports:
      
      ```rust
      pub mod foo {
        pub struct Bar;
      }
      
      pub enum Bar {}
      use foo::*;
      
      // This is expected to link to `inner::Bar`, but instead it will link to the enum.
      /// Link to [struct@Bar]
      pub struct MyDocs;
      ```
      
      The reason for this is that this change does not affect the resolution
      algorithm of rustc_resolve at all. The only reason we could special-case
      primitives is because we have a list of all possible primitives ahead of time.
      e46c1876
    • B
      Auto merge of #74073 - Manishearth:rollup-faqo9lx, r=Manishearth · 0c03aee8
      bors 提交于
      Rollup of 12 pull requests
      
      Successful merges:
      
       - #72688 (added .collect() into String from Box<str>)
       - #73787 (Add unstable docs for rustc_attrs)
       - #73834 (Some refactoring around intrinsic type checking)
       - #73871 (Fix try_print_visible_def_path for Rust 2018)
       - #73937 (Explain exhaustive matching on {usize,isize} maximum values)
       - #73973 (Use `Span`s to identify unreachable subpatterns in or-patterns)
       - #74000 (add `lazy_normalization_consts` feature gate)
       - #74025 (Remove unnecessary release from Arc::try_unwrap)
       - #74027 (Convert more `DefId`s to `LocalDefId`s)
       - #74055 (Fix spacing in Iterator fold doc)
       - #74057 (expected_found `&T` -> `T`)
       - #74064 (variant_count: avoid incorrect dummy implementation)
      
      Failed merges:
      
      r? @ghost
      0c03aee8
    • M
      Rollup merge of #74064 - RalfJung:variant-count-bootstrap, r=kennytm · e6243633
      Manish Goregaokar 提交于
      variant_count: avoid incorrect dummy implementation
      
      This also avoids a stage 0 doctest failure.
      e6243633
    • M
      Rollup merge of #74057 - lcnr:expected_found, r=davidtwco · b4710bde
      Manish Goregaokar 提交于
      expected_found `&T` -> `T`
      b4710bde
    • M
      Rollup merge of #74055 - pickfire:patch-1, r=jonas-schievink · 4591b0f4
      Manish Goregaokar 提交于
      Fix spacing in Iterator fold doc
      4591b0f4
    • M
      Rollup merge of #74027 - lcnr:ConstCx-local-def-id, r=varkor · a1c076fa
      Manish Goregaokar 提交于
      Convert more `DefId`s to `LocalDefId`s
      a1c076fa
    • M
      Rollup merge of #74025 - tmiasko:try-unwrap, r=Amanieu · aef2ca66
      Manish Goregaokar 提交于
      Remove unnecessary release from Arc::try_unwrap
      
      The thread that recovers the unique access to Arc inner value (e.g., drop
      when ref-count strong reaches zero, successful try_unwrap), ensures that
      other operations on Arc inner value happened before by synchronizing
      with release operations performed when decrementing the reference counter.
      
      When try_unwrap succeeds, the current thread recovers the unique access
      to Arc inner value, so release is unnecessary.
      
      r? @Amanieu
      aef2ca66
    • M
      Rollup merge of #74000 - lcnr:lazy_normalisation_consts, r=varkor · 0eadeda9
      Manish Goregaokar 提交于
      add `lazy_normalization_consts` feature gate
      
      In #71973 I underestimated the amount of code which is influenced by lazy normalization of consts
      and decided against having a separate feature flag for this.
      
      Looking a bit more into this, the following issues are already working with lazy norm in its current state #47814 #57739 #73980
      
      I therefore think it is worth it to enable lazy norm separately. Note that `#![feature(const_generics)]` still automatically activates
      this feature, so using `#![feature(const_generics, lazy_normalization_consts)]` is redundant.
      
      r? @varkor @nikomatsakis
      0eadeda9
    • M
      Rollup merge of #73973 - Nadrieril:fix-71977, r=matthewjasper · e450646e
      Manish Goregaokar 提交于
      Use `Span`s to identify unreachable subpatterns in or-patterns
      
      Fixes #71977
      e450646e