diff options
| author | Alex Macleod <alex@macleod.io> | 2022-07-31 15:11:00 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2022-07-31 15:11:33 +0000 |
| commit | 2a0b51d852e3765d257284f91fc3246084c96ee5 (patch) | |
| tree | 07555af30e2578d89e2798dc261691868be2a017 /compiler/rustc_trait_selection/src/traits/on_unimplemented.rs | |
| parent | 482153bc208df5fc236cc0e1cddb24e93fcc332f (diff) | |
| download | rust-2a0b51d852e3765d257284f91fc3246084c96ee5.tar.gz rust-2a0b51d852e3765d257284f91fc3246084c96ee5.zip | |
Always include a position span in rustc_parse_format::Argument
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/on_unimplemented.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/on_unimplemented.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/on_unimplemented.rs b/compiler/rustc_trait_selection/src/traits/on_unimplemented.rs index 4d3b0b4cf07..9227bbf011d 100644 --- a/compiler/rustc_trait_selection/src/traits/on_unimplemented.rs +++ b/compiler/rustc_trait_selection/src/traits/on_unimplemented.rs @@ -300,7 +300,7 @@ impl<'tcx> OnUnimplementedFormatString { match token { Piece::String(_) => (), // Normal string, no need to check it Piece::NextArgument(a) => match a.position { - Position::ArgumentNamed(s, _) => { + Position::ArgumentNamed(s) => { match Symbol::intern(s) { // `{Self}` is allowed kw::SelfUpper => (), @@ -386,7 +386,7 @@ impl<'tcx> OnUnimplementedFormatString { .map(|p| match p { Piece::String(s) => s, Piece::NextArgument(a) => match a.position { - Position::ArgumentNamed(s, _) => { + Position::ArgumentNamed(s) => { let s = Symbol::intern(s); match generic_map.get(&s) { Some(val) => val, |
