Repository: rust-lang/rust-mode (language: rust)

Issue:
rust-mode ignores my tab indentation settings
I have `(setq-default indent-tabs-mode t)` in my `~/.emacs` file. This is being respected by all emacs modes appart from rust-mode. Now I do realize that it is recommended to use spaces in Rust, however I'd still like to use tabs. How can I make rust-mode respect my settings?


Discussion / hints:
Rust mode is explicitly overriding it: 

https://github.com/rust-lang/rust-mode/blob/c62185ae1c6edf0335261f169241eb8ee9713ad5/rust-mode.el#L1557

But it's easy enough to override with

```emacs-lisp
(add-hook 'rust-mode-hook 
          (lambda () (setq indent-tabs-mode t)))
```

Fix patch:
diff --git a/rust-mode.el b/rust-mode.el
index f2c4d862..e57a6506 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1583,7 +1583,6 @@ Return the created process."
   ;; Misc
   (setq-local comment-start "// ")
   (setq-local comment-end   "")
-  (setq-local indent-tabs-mode nil)
   (setq-local open-paren-in-column-0-is-defun-start nil)
 
   ;; Auto indent on }


Test patch:
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index b21202a3..b13c1ba2 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -6,6 +6,7 @@
 (require 'imenu)
 
 (setq rust-test-fill-column 32)
+(setq-default indent-tabs-mode nil)
 
 (defun rust-compare-code-after-manip (original point-pos manip-func expected got)
   (equal expected got))