mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-28 19:46:01 +00:00
Make set_span take mut self This was a mistake in https://github.com/rust-lang/rust/pull/77614 It's not a _huge_ deal, because backends can always implement this with interior mutability, but it's nice to avoid interior mutability when possible. For context, the `set_source_location` method, called alongside `set_span`, also takes `&mut self`. r? `@eddyb`