1. 10 8月, 2019 7 次提交
    • M
      Rollup merge of #63350 - iluuu1994:use-associated-type-bounds, r=Centril · 6743ad67
      Mazdak Farrokhzad 提交于
      Use associated_type_bounds where applicable - closes #61738
      6743ad67
    • M
      Rollup merge of #63337 - estebank:break-ee0308, r=Centril · 52f9e80e
      Mazdak Farrokhzad 提交于
      Tweak mismatched types error
      
      - Change expected/found for type mismatches in `break`
      - Be more accurate when talking about diverging match arms
      - Tweak wording of function without a return value
      - Suggest calling bare functions when their return value can be coerced to the expected type
      - Give more parsing errors when encountering `foo(_, _, _)`
      
      Fix #51767, fix #62677, fix #63136, cc #37384, cc #35241, cc #51669.
      52f9e80e
    • M
      Rollup merge of #63056 - petrochenkov:macstd2, r=alexcrichton · eb445616
      Mazdak Farrokhzad 提交于
      Give built-in macros stable addresses in the standard library
      
      Continuation of https://github.com/rust-lang/rust/pull/62086.
      
      Derive macros corresponding to traits from libcore are now available through the same paths as those traits:
      - `Clone` - `{core,std}::clone::Clone`
      - `PartialEq` - `{core,std}::cmp::PartialEq`
      - `Eq` - `{core,std}::cmp::Eq`
      - `PartialOrd` - `{core,std}::cmp::PartialOrd`
      - `Ord` - `{core,std}::cmp::Ord`
      - `Default` - `{core,std}::default::Default`
      - `Debug` - `{core,std}::fmt::Debug`
      - `Hash` - `{core,std}::hash::Hash`
      - `Copy` - `{core,std}::marker::Copy`
      
      Fn-like built-in macros are now available through libcore and libstd's root module, by analogy with non-builtin macros defined by libcore and libstd:
      ```rust
      {core,std}::{
          __rust_unstable_column,
          asm,
          assert,
          cfg,
          column,
          compile_error,
          concat,
          concat_idents,
          env,
          file,
          format_args,
          format_args_nl,
          global_asm,
          include,
          include_bytes,
          include_str,
          line,
          log_syntax,
          module_path,
          option_env,
          stringify,
          trace_macros,
      }
      ```
      
      Derive macros without a corresponding trait in libcore or libstd are still available only through prelude (also see https://github.com/rust-lang/rust/pull/62507).
      Attribute macros also keep being available only through prelude, mostly because they don't have an existing practice to follow. An advice from the library team on their eventual placement would be appreciated.
      ```rust
          RustcDecodable,
          RustcEncodable,
          bench,
          global_allocator,
          test,
          test_case,
      ```
      
      r? @alexcrichton
      eb445616
    • B
      Auto merge of #62756 - newpavlov:stabilize_dur_float, r=alexcrichton · be8bbb06
      bors 提交于
      Stabilize duration_float
      
      Closes: #54361
      be8bbb06
    • B
      Auto merge of #63415 - nikic:bump-llvm-2, r=alexcrichton · 0ff76ad8
      bors 提交于
      Update LLVM submodule
      
      Fixes #63361.
      
      r? @alexcrichton
      0ff76ad8
    • V
    • N
      Update LLVM submodule · d8ae1dc3
      Nikita Popov 提交于
      d8ae1dc3
  2. 09 8月, 2019 33 次提交