File: quote-debug.stdout

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (49 lines) | stat: -rw-r--r-- 2,214 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#![feature(prelude_import)]
#![no_std]
//@ check-pass
//@ force-host
//@ no-prefer-dynamic
//@ compile-flags: -Z unpretty=expanded
//@ needs-unwind compiling proc macros with panic=abort causes a warning
//
// This file is not actually used as a proc-macro - instead,
// it's just used to show the output of the `quote!` macro

#![feature(proc_macro_quote)]
#![crate_type = "proc-macro"]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;

extern crate proc_macro;

fn main() {
    [crate::TokenStream::from(crate::TokenTree::Ident(crate::Ident::new("let",
                                    crate::Span::recover_proc_macro_span(0)))),
                        crate::TokenStream::from(crate::TokenTree::Ident(crate::Ident::new("hello",
                                    crate::Span::recover_proc_macro_span(1)))),
                        crate::TokenStream::from(crate::TokenTree::Punct(crate::Punct::new('=',
                                    crate::Spacing::Alone))),
                        crate::TokenStream::from(crate::TokenTree::Literal({
                                    let mut iter =
                                        "\"world\"".parse::<crate::TokenStream>().unwrap().into_iter();
                                    if let (Some(crate::TokenTree::Literal(mut lit)), None) =
                                                (iter.next(), iter.next()) {
                                            lit.set_span(crate::Span::recover_proc_macro_span(2));
                                            lit
                                        } else {
                                           ::core::panicking::panic("internal error: entered unreachable code")
                                       }
                                })),
                        crate::TokenStream::from(crate::TokenTree::Punct(crate::Punct::new(';',
                                    crate::Spacing::Alone)))].iter().cloned().collect::<crate::TokenStream>()
}
const _: () =
    {
        extern crate proc_macro;
        #[rustc_proc_macro_decls]
        #[used]
        #[allow(deprecated)]
        static _DECLS: &[proc_macro::bridge::client::ProcMacro] = &[];
    };