]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #107318 - matthiaskrgr:rollup-776kd81, r=matthiaskrgr
authorbors <bors@rust-lang.org>
Thu, 26 Jan 2023 09:14:05 +0000 (09:14 +0000)
committerbors <bors@rust-lang.org>
Thu, 26 Jan 2023 09:14:05 +0000 (09:14 +0000)
Rollup of 9 pull requests

Successful merges:

 - #97373 (impl DispatchFromDyn for Cell and UnsafeCell)
 - #106625 (Remove backwards compat for LLVM 12 coverage format)
 - #106779 (Avoid __cxa_thread_atexit_impl on Emscripten)
 - #106811 (Append .dwp to the binary filename instead of replacing the existing extension.)
 - #106836 (Remove optimistic spinning from `mpsc::SyncSender`)
 - #106946 (implement Hash for proc_macro::LineColumn)
 - #107074 (remove unnecessary check for opaque types)
 - #107287 (Improve fn pointer notes)
 - #107304 (Use `can_eq` to compare types for default assoc type error)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

1  2 
library/proc_macro/src/lib.rs

index 8bff40c279aaa4ce2b9761c9a78ae32bfa93d6aa,1699f0d55bc7ec0035a20da0efa511789a1970e7..938935771d64e24c84d775cd2c59472344a02a04
@@@ -74,7 -74,6 +74,7 @@@ pub fn is_available() -> bool 
  ///
  /// This is both the input and output of `#[proc_macro]`, `#[proc_macro_attribute]`
  /// and `#[proc_macro_derive]` definitions.
 +#[rustc_diagnostic_item = "TokenStream"]
  #[stable(feature = "proc_macro_lib", since = "1.15.0")]
  #[derive(Clone)]
  pub struct TokenStream(Option<bridge::client::TokenStream>);
@@@ -582,7 -581,7 +582,7 @@@ impl fmt::Debug for Span 
  
  /// A line-column pair representing the start or end of a `Span`.
  #[unstable(feature = "proc_macro_span", issue = "54725")]
- #[derive(Copy, Clone, Debug, PartialEq, Eq)]
+ #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
  pub struct LineColumn {
      /// The 1-indexed line in the source file on which the span starts or ends (inclusive).
      #[unstable(feature = "proc_macro_span", issue = "54725")]