Complete #![recursion_limit = "N"] over #![recursion_limit = N]

This commit is contained in:
Hirochika Matsumoto 2021-09-05 17:57:11 +09:00
parent c16e6474f9
commit 1f238b3bb5
2 changed files with 7 additions and 3 deletions

View File

@ -272,8 +272,12 @@ const ATTRIBUTES: &[AttrCompletion] = &[
attr("proc_macro", None, None),
attr("proc_macro_attribute", None, None),
attr("proc_macro_derive(…)", Some("proc_macro_derive"), Some("proc_macro_derive(${0:Trait})")),
attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}"))
.prefer_inner(),
attr(
r#"recursion_limit = "…""#,
Some("recursion_limit"),
Some(r#"recursion_limit = "${0:128}""#),
)
.prefer_inner(),
attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)),
attr(

View File

@ -75,7 +75,7 @@ fn attr_on_source_file() {
at no_implicit_prelude
at no_main
at no_std
at recursion_limit =
at recursion_limit = ""
at type_length_limit =
at windows_subsystem = ""
"#]],