mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-22 12:37:32 +00:00
Merge #10154
10154: feat: Complete `#![recursion_limit = "N"]` instead of `#![recursion_limit = N]` r=lnicola a=hkmatsumoto Currently ra emits `#![recursion_limit = 128]`, but this should rather be `#![recursion_limit = "128"]` Co-authored-by: Hirochika Matsumoto <git@hkmatsumoto.com>
This commit is contained in:
commit
0bc8e2acb8
@ -272,8 +272,12 @@ const ATTRIBUTES: &[AttrCompletion] = &[
|
|||||||
attr("proc_macro", None, None),
|
attr("proc_macro", None, None),
|
||||||
attr("proc_macro_attribute", None, None),
|
attr("proc_macro_attribute", None, None),
|
||||||
attr("proc_macro_derive(…)", Some("proc_macro_derive"), Some("proc_macro_derive(${0:Trait})")),
|
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}"))
|
attr(
|
||||||
.prefer_inner(),
|
r#"recursion_limit = "…""#,
|
||||||
|
Some("recursion_limit"),
|
||||||
|
Some(r#"recursion_limit = "${0:128}""#),
|
||||||
|
)
|
||||||
|
.prefer_inner(),
|
||||||
attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
|
attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
|
||||||
attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)),
|
attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)),
|
||||||
attr(
|
attr(
|
||||||
|
@ -75,7 +75,7 @@ fn attr_on_source_file() {
|
|||||||
at no_implicit_prelude
|
at no_implicit_prelude
|
||||||
at no_main
|
at no_main
|
||||||
at no_std
|
at no_std
|
||||||
at recursion_limit = …
|
at recursion_limit = "…"
|
||||||
at type_length_limit = …
|
at type_length_limit = …
|
||||||
at windows_subsystem = "…"
|
at windows_subsystem = "…"
|
||||||
"#]],
|
"#]],
|
||||||
|
Loading…
Reference in New Issue
Block a user