session: diagnostic migration lint on more fns
Apply the diagnostic migration lint to more functions on `Session`. Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
d45004806d
commit
2575b1abc9
33 changed files with 510 additions and 162 deletions
|
@ -305,8 +305,12 @@ impl TargetMachineFactoryConfig {
|
|||
}
|
||||
|
||||
pub type TargetMachineFactoryFn<B> = Arc<
|
||||
dyn Fn(TargetMachineFactoryConfig) -> Result<<B as WriteBackendMethods>::TargetMachine, String>
|
||||
+ Send
|
||||
dyn Fn(
|
||||
TargetMachineFactoryConfig,
|
||||
) -> Result<
|
||||
<B as WriteBackendMethods>::TargetMachine,
|
||||
<B as WriteBackendMethods>::TargetMachineError,
|
||||
> + Send
|
||||
+ Sync,
|
||||
>;
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ use rustc_middle::dep_graph::WorkProduct;
|
|||
pub trait WriteBackendMethods: 'static + Sized + Clone {
|
||||
type Module: Send + Sync;
|
||||
type TargetMachine;
|
||||
type TargetMachineError;
|
||||
type ModuleBuffer: ModuleBufferMethods;
|
||||
type ThinData: Send + Sync;
|
||||
type ThinBuffer: ThinBufferMethods;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue