diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-06 13:22:36 +0000 | 
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-06 14:45:58 +0000 | 
| commit | 700c095306ce89b0b18e2487aae9c0721e60a5e3 (patch) | |
| tree | 50e8a78e271c55895f1875234640d0bce83591f3 /compiler/rustc_builtin_macros/src/env.rs | |
| parent | 244990a6e91843289e094b384d67294756891fe9 (diff) | |
| download | rust-700c095306ce89b0b18e2487aae9c0721e60a5e3.tar.gz rust-700c095306ce89b0b18e2487aae9c0721e60a5e3.zip  | |
`rustc_builtin_macros`: remove `ref` patterns
... and other pattern matching improvements
Diffstat (limited to 'compiler/rustc_builtin_macros/src/env.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/env.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/env.rs b/compiler/rustc_builtin_macros/src/env.rs index b8828fa671a..0b4e545f7a3 100644 --- a/compiler/rustc_builtin_macros/src/env.rs +++ b/compiler/rustc_builtin_macros/src/env.rs @@ -53,7 +53,7 @@ pub fn expand_env<'cx>( tts: TokenStream, ) -> Box<dyn base::MacResult + 'cx> { let mut exprs = match get_exprs_from_tts(cx, sp, tts) { - Some(ref exprs) if exprs.is_empty() => { + Some(exprs) if exprs.is_empty() => { cx.span_err(sp, "env! takes 1 or 2 arguments"); return DummyResult::any(sp); }  | 
