Allow extending a chain after raw string literal
#[inline]
pub fn last_line_extendable(s: &str) -> bool {
s.lines().last().map_or(false, |s| {
- s.trim()
- .chars()
- .all(|c| c == ')' || c == ']' || c == '}' || c == '?')
+ s.ends_with("\"#") ||
+ s.trim()
+ .chars()
+ .all(|c| c == ')' || c == ']' || c == '}' || c == '?')
})
}
})
?;
}
+
+fn issue1392() {
+ test_method(r#"
+ if foo {
+ a();
+ }
+ else {
+ b();
+ }
+ "#.trim());
+}
in_binder(f, tcx, &ty::Binder(""), Some(tap))
})?;
}
+
+fn issue1392() {
+ test_method(
+ r#"
+ if foo {
+ a();
+ }
+ else {
+ b();
+ }
+ "#.trim(),
+ );
+}