File tree Expand file tree Collapse file tree 2 files changed +4
-37
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 2 files changed +4
-37
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ dependencies = [
369
369
" tar" ,
370
370
" tempfile" ,
371
371
" termcolor" ,
372
- " toml_edit " ,
372
+ " toml " ,
373
373
" unicode-width" ,
374
374
" unicode-xid" ,
375
375
" url 2.2.2" ,
@@ -455,7 +455,7 @@ dependencies = [
455
455
" serde_json" ,
456
456
" tar" ,
457
457
" termcolor" ,
458
- " toml_edit " ,
458
+ " toml " ,
459
459
" url 2.2.2" ,
460
460
]
461
461
@@ -710,16 +710,6 @@ dependencies = [
710
710
" winapi" ,
711
711
]
712
712
713
- [[package ]]
714
- name = " combine"
715
- version = " 4.6.3"
716
- source = " registry+https://github.com/rust-lang/crates.io-index"
717
- checksum = " 50b727aacc797f9fc28e355d21f34709ac4fc9adecfe470ad07b8f4464f53062"
718
- dependencies = [
719
- " bytes" ,
720
- " memchr" ,
721
- ]
722
-
723
713
[[package ]]
724
714
name = " commoncrypto"
725
715
version = " 0.2.0"
@@ -1949,15 +1939,6 @@ dependencies = [
1949
1939
" unicase" ,
1950
1940
]
1951
1941
1952
- [[package ]]
1953
- name = " kstring"
1954
- version = " 1.0.6"
1955
- source = " registry+https://github.com/rust-lang/crates.io-index"
1956
- checksum = " 8b310ccceade8121d7d77fee406160e457c2f4e7c7982d589da3499bc7ea4526"
1957
- dependencies = [
1958
- " serde" ,
1959
- ]
1960
-
1961
1942
[[package ]]
1962
1943
name = " lazy_static"
1963
1944
version = " 1.4.0"
@@ -3165,14 +3146,13 @@ dependencies = [
3165
3146
" tokio-stream" ,
3166
3147
" tokio-util" ,
3167
3148
" toml" ,
3168
- " toml_edit" ,
3169
3149
" url 2.2.2" ,
3170
3150
" walkdir" ,
3171
3151
]
3172
3152
3173
3153
[[package ]]
3174
3154
name = " rls-analysis"
3175
- version = " 0.18.3 "
3155
+ version = " 0.18.2 "
3176
3156
dependencies = [
3177
3157
" derive-new" ,
3178
3158
" env_logger 0.9.0" ,
@@ -5171,19 +5151,6 @@ dependencies = [
5171
5151
" serde" ,
5172
5152
]
5173
5153
5174
- [[package ]]
5175
- name = " toml_edit"
5176
- version = " 0.13.4"
5177
- source = " registry+https://github.com/rust-lang/crates.io-index"
5178
- checksum = " 744e9ed5b352340aa47ce033716991b5589e23781acb97cad37d4ea70560f55b"
5179
- dependencies = [
5180
- " combine" ,
5181
- " indexmap" ,
5182
- " itertools 0.10.1" ,
5183
- " kstring" ,
5184
- " serde" ,
5185
- ]
5186
-
5187
5154
[[package ]]
5188
5155
name = " topological-sort"
5189
5156
version = " 0.1.0"
Original file line number Diff line number Diff line change @@ -2522,7 +2522,7 @@ pub enum ConstantKind<'tcx> {
2522
2522
2523
2523
impl < ' tcx > Constant < ' tcx > {
2524
2524
pub fn check_static_ptr ( & self , tcx : TyCtxt < ' _ > ) -> Option < DefId > {
2525
- match self . literal . const_for_ty ( ) ? . val ( ) . try_to_scalar ( ) {
2525
+ match self . literal . try_to_scalar ( ) {
2526
2526
Some ( Scalar :: Ptr ( ptr, _size) ) => match tcx. global_alloc ( ptr. provenance ) {
2527
2527
GlobalAlloc :: Static ( def_id) => {
2528
2528
assert ! ( !tcx. is_thread_local_static( def_id) ) ;
You can’t perform that action at this time.
0 commit comments