File tree Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 093faaabe115c43a09c8565f572fb03d81256a3a
2
+ refs/heads/master: 210db7d8d4d0b65a2ae2b113ef50740c20cbd910
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change
1
+ #[ link( name = "req" ) ] ;
2
+ #[ crate_type = "lib" ] ;
3
+
4
+ use std;
5
+
6
+ import dvec:: * ;
7
+ import dvec:: dvec;
8
+ import std:: map:: hashmap;
9
+
10
+ type header_map = hashmap < str , @dvec < @str > > ;
11
+
12
+ // the unused ty param is necessary so this gets monomorphized
13
+ fn request < T : copy > ( req : header_map ) {
14
+ let _x = * ( * req. get ( "METHOD" ) ) [ 0 u] ;
15
+ }
Original file line number Diff line number Diff line change
1
+ // xfail-fast
2
+ // aux-build:issue-2631-a.rs
3
+
4
+ use req;
5
+ use std;
6
+
7
+ import req:: * ;
8
+ import std:: map:: * ;
9
+ import std:: map:: str_hash;
10
+ import dvec;
11
+
12
+ fn main ( ) {
13
+ let v = [ mut @"hi"] ;
14
+ let m: req:: header_map = str_hash ( ) ;
15
+ m. insert ( "METHOD" , @dvec:: from_vec ( v) ) ;
16
+ request :: < int > ( m) ;
17
+ }
You can’t perform that action at this time.
0 commit comments