1. 18 2月, 2018 10 次提交
  2. 17 2月, 2018 19 次提交
  3. 16 2月, 2018 11 次提交
    • G
      a58409dd
    • B
      Auto merge of #48252 - Mark-Simulacrum:exclude-paths, r=alexcrichton · 58a8e0c2
      bors 提交于
      Fix not running some steps in CI
      
      We'd previously assumed that these paths would be relative to the src
      dir, and that for example our various CI scripts would, when calling
      x.py, use `../x.py build ../src/tools/...` but this isn't the case --
      they use `../x.py` without using the relevant source-relative path.
      
      We eventually may want to make this (actually somewhat logical) change,
      but this is not that time.
      
      r? @kennytm
      58a8e0c2
    • A
      Add a warning to File about mutability. · e9c75a88
      Alexis Hunt 提交于
      Fixes #47708.
      e9c75a88
    • S
      Force the link to std::thread::yield_now() · e812da0e
      Stefan Schindler 提交于
      e812da0e
    • S
      Add link to yield_now · 3bf989f4
      Stefan Schindler 提交于
      3bf989f4
    • K
      Fix panic when `x.py` is called without any arguments. · c788433b
      kennytm 提交于
      c788433b
    • B
      Auto merge of #46714 - leodasvacas:refactor-structurally-resolve-type, r=nikomatsakis · 5570cdcc
      bors 提交于
      Refactor diverging and numeric fallback.
      
      This refactoring tries to make numeric fallback easier to reason about. Instead of applying all fallbacks at an arbitrary point in the middle of inference, we apply the fallback only when necessary and only for
      the variable that requires it. The only place that requires early fallback is the target of numeric casts.
      
      The  visible consequences is that some error messages that got `i32` now get `{integer}` because we are less eager about fallback.
      
      The bigger goal is to make it easier to integrate user fallbacks into inference, if we ever figure that out.
      5570cdcc
    • M
      Consider paths passed to x.py to be root-relative. · 366a6566
      Mark Simulacrum 提交于
      We'd previously assumed that these paths would be relative to the src
      dir, and that for example our various CI scripts would, when calling
      x.py, use `../x.py build ../src/tools/...` but this isn't the case --
      they use `../x.py` without using the relevant source-relative path.
      
      We eventually may want to make this (actually somewhat logical) change,
      but this is not that time.
      366a6566
    • M
      Prevent silently ignoring unmatched paths · e78ecd2e
      Mark Simulacrum 提交于
      Primarily for CI purposes; this is intended to avoid cases where we
      update rustbuild and unintentionally make CI stop running some builds to
      the arguments being passed no longer applying for some reason.
      e78ecd2e
    • B
      Auto merge of #45404 - giannicic:defaultimpl2, r=nikomatsakis · efda9bae
      bors 提交于
      #37653 support `default impl` for specialization
      
      this commit implements the second part of the `default impl` feature:
      
      >  - a `default impl` need not include all items from the trait
      >  - a `default impl` alone does not mean that a type implements the trait
      
      The first point allows rustc to compile and run something like this:
      
      ```
      trait Foo {
          fn foo_one(&self) -> &'static str;
          fn foo_two(&self) -> &'static str;
      }
      
      default impl<T> Foo for T {
          fn foo_one(&self) -> &'static str {
              "generic"
          }
      }
      
      struct MyStruct;
      
      fn  main() {
          assert!(MyStruct.foo_one() == "generic");
      }
      ```
      
      but it shows a proper error if trying to call `MyStruct.foo_two()`
      
      The second point allows a `default impl` to be considered as not implementing the `Trait` if it doesn't implement all the trait items.
      The tests provided (in the compile-fail section) should cover all the possible trait resolutions.
      Let me know if some tests is missed.
      
      See [referenced ](https://github.com/rust-lang/rust/issues/37653) issue for further info
      
      r? @nikomatsakis
      efda9bae
    • S
      spelling fix in comment · 137f5bc6
      Steve Klabnik 提交于
      137f5bc6