@@ -628,7 +628,10 @@ fn indented_already() {
628
628
POS-SYMBOL is a symbol found in `rust-test-positions-alist' .
629
629
Convert the line-column information from that list into a buffer position value."
630
630
(interactive " P" )
631
- (pcase-let ((`(, line , column ) (cadr (assoc pos-symbol rust-test-positions-alist))))
631
+ (let* (
632
+ (line-and-column (cadr (assoc pos-symbol rust-test-positions-alist)))
633
+ (line (nth 0 line-and-column))
634
+ (column (nth 1 line-and-column)))
632
635
(save-excursion
633
636
(goto-line line)
634
637
(move-to-column column)
@@ -856,14 +859,14 @@ All positions are position symbols found in `rust-test-positions-alist'."
856
859
(defun rust-test-group-str-by-face (str )
857
860
" Fontify `STR' in rust-mode and group it by face, returning a
858
861
list of substrings of `STR' each followed by its face."
859
- (cl- loop with fontified = (rust-test-fontify-string str)
860
- for start = 0 then end
861
- while start
862
- for end = (next-single-property-change start 'face fontified)
863
- for prop = (get-text-property start 'face fontified)
864
- for text = (substring-no-properties fontified start end)
865
- if prop
866
- append (list text prop)))
862
+ (loop with fontified = (rust-test-fontify-string str)
863
+ for start = 0 then end
864
+ while start
865
+ for end = (next-single-property-change start 'face fontified)
866
+ for prop = (get-text-property start 'face fontified)
867
+ for text = (substring-no-properties fontified start end)
868
+ if prop
869
+ append (list text prop)))
867
870
868
871
(defun rust-test-font-lock (source face-groups )
869
872
" Test that `SOURCE' fontifies to the expected `FACE-GROUPS' "
0 commit comments