Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions SyntaxCheckPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,12 @@ def get_rustc_messages(self):
settings.load()
command_info = cargo_settings.CARGO_COMMANDS[method]

if method == 'clippy':
# Clippy does not support cargo target filters, must be run for
# all targets.
cmd = settings.get_command(method, command_info, self.cwd,
self.cwd, force_json=True)
self.msg_rel_path = cmd['msg_rel_path']
p = rust_proc.RustProc()
p.run(self.window, cmd['command'], self.cwd, self, env=cmd['env'])
return p.wait()

if method == 'no-trans':
print('rust_syntax_checking_method == "no-trans" is no longer supported.')
print('Please change the config setting to "check".')
method = 'check'

if method != 'check':
if method not in ['check', 'clippy']:
print('Unknown setting for `rust_syntax_checking_method`: %r' % (method,))
return -1

Expand Down
2 changes: 1 addition & 1 deletion rust/cargo_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
'clippy': {
'name': 'Clippy',
'command': 'clippy',
'allows_target': False,
'allows_target': True,
'allows_target_triple': True,
'allows_release': True,
'allows_features': True,
Expand Down