rust/compiler/rustc_session/src
Nicholas Nethercote ed76b0b882 Rename consuming chaining methods on DiagnosticBuilder.
In #119606 I added them and used a `_mv` suffix, but that wasn't great.

A `with_` prefix has three different existing uses.
- Constructors, e.g. `Vec::with_capacity`.
- Wrappers that provide an environment to execute some code, e.g.
  `with_session_globals`.
- Consuming chaining methods, e.g. `Span::with_{lo,hi,ctxt}`.

The third case is exactly what we want, so this commit changes
`DiagnosticBuilder::foo_mv` to `DiagnosticBuilder::with_foo`.

Thanks to @compiler-errors for the suggestion.
2024-01-10 07:40:00 +11:00
..
config Change process spawning to inherit the parent's signal mask by default 2022-10-20 14:53:38 -07:00
code_stats.rs rustc_session: Address all rustc::potential_query_instability lints 2023-12-03 15:05:39 +01:00
config.rs Remove -Zdont-buffer-diagnostics. 2024-01-09 09:47:36 +11:00
cstore.rs Move MetadataLoader{,Dyn} to rustc_metadata. 2023-11-30 17:05:54 +11:00
errors.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
filesearch.rs Remove unused FileMatch. 2023-11-30 17:05:56 +11:00
lib.rs rustc_session: Address all rustc::potential_query_instability lints 2023-12-03 15:05:39 +01:00
options.rs Rollup merge of #118680 - djkoloski:shell_argfiles, r=compiler-errors 2024-01-09 17:52:21 +01:00
output.rs Remove more Session methods that duplicate DiagCtxt methods. 2023-12-24 08:17:47 +11:00
parse.rs Remove ParseSess methods that duplicate DiagCtxt methods. 2023-12-24 07:59:21 +11:00
search_paths.rs Rename EarlyDiagCtxt methods to match DiagCtxt. 2023-12-23 13:23:28 +11:00
session.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
utils.rs Move is_ascii_ident to where it's used. 2023-11-30 17:05:56 +11:00
version.rs Simplify the current_rustc_version macro. 2023-11-10 10:54:21 +11:00